Last update at :2024-06-29,Edit by888u
In the early years, we used small floppy disks to store data, and later we used U disks and mobile hard disks. In recent years, we have begun to use network disks, online cloud storage and other tools. The effect is obvious, so files can be used at any time without carrying them. This is not because in recent years, various service providers have withdrawn from their own cloud disk and network disk services. I remember one year they were competing with each other to see who could provide more space. In fact, large space is of no use to most people and is basically endless.
However, changes have occurred in the past year or two. Due to policy issues or operational issues, they have been closed or switched to paid services. At the same time, some cloud disk service providers have been exposed to security issues and leaked files. In particular, security issues are very important to the security of our files. deadly. Perhaps due to the security of files or the integrity of the content, many individuals or companies build their own cloud disks and network disks. To make it simpler, you can directly use the tree document directory (4 simple and practical self-owned resource tree directory program source codes Demo and download) to manage files. At least the virtual host and VPS are our own. There is basically no problem in making backups or choosing a stable server.
In this article, Snail will try to use the Seafile open source program to build a self-built cloud disk storage. I remember trying to use Owncloud to build a self-built cloud disk before (using the ownCloud open source program to set up a private cloud storage process), but according to feedback from netizens Seafile is also good, so I gave it a try.
First, preparations for self-built Seafile cloud disk storage
1. Choose a pure Linux VPS and server. Here, Snail opened a Vultr VPS as the test host for this article.
2. The system I chose is CentOS 7
3. If our server has other resources, it is recommended to back them up, because this requires reinstallation of the database and environment.
Second, install software packages and databases
yum update -y
yum install python-setuptools python-imaging python-ldap MySQL-python python-memcached python-urllib3
yum install mariadb-server
During the installation process, enter y twice and press Enter.
Third, download the Seafile source code program
Official download address: https://www.seafile.com/download/
We can go to the official Seafile website to download the required version of the Seafile program.
mkdir -p /home/seafile
cd /home/seafile
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.0.9_x86-64.tar.gz
tar -zxvf sea*.tar.gz
cd sea*
We download a version from the official website to the local, then decompress it, and then enter the current decompressed seafile directory package.
Fourth, initialize and set database password
We have not set the database password after installing the mariadb database above. Because we need to create a separate database for the seafile cloud disk later, we need to initialize the database password.
systemctl start mariadbsystemctl enable mariadbmysql_secure_installation
Follow the prompts and then set the database management password.
Fifth, install and deploy Seafile cloud disk program
1. Create seafile database
mysql -uroot -pCreate USER \\’seafile\\’@\\’%\\’ IDENTIFIED BY \\’laobuluo.com\\’;flush privileges;
According to the prompts, we need to enter the management password first, and then create the seafile database user and password.
2. Install seafile
./setup-seafile-mysql.sh
There is a wizard during the installation process, which requires you to set various database information. In fact, you can re-create the database during this process, or you can use an existing one, so there is no need to create a separate database before. I won’t take screenshots of the specific process. It’s more common to press Enter to default.
Sixth, start Seafile
./seafile.sh start
Seventh, start Seahub
./seahub.sh start
During initialization, we will be asked to fill in our email address and set the administrator password twice.
Eighth, log in to Seafile to manage the cloud disk
http://Server IP address:8000
If there are no major problems above, you can complete logging in to Seafile. The default is port 8000, we can modify other ports.
We will try it later on how to use it. Here, Snail is installed first.
In summary, Snail personally thinks that SeaFile cloud disk storage tool is good, but it is more troublesome to install. I will look around later to see if there is a more convenient installation method, such as a one-click package, otherwise I would be too lazy to install it.
Recommended site search: ip rental, free asp space, website server rental ip agent, Hong Kong server hosting, ip query detailed address, no registration space free network, vps host, overseas virtual host space, server high defense Hong Kong, < /p>
发表评论