Monday, February 14, 2022

How To Install Seafile To Sync and Share Files on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Seafile To Sync and Share Files on Rocky Linux 8.5"

Seafile is an open-source, high-performance, secure and enterprise-ready file synchronization and sharing solution built using Python. It features simple data organization using libraries, fast, reliable and efficient synchronization between devices.
Homepege - https://www.seafile.com/en/home/
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install epel-release
dnf -y install python3 python3-devel python3-imaging MySQL-python3 python3-simplejson python3-setuptools mariadb mariadb-server nginx gcc mysql-devel wget
pip3 install --upgrade pip
python3 -m pip install --upgrade Pillow
pip3 install pylibmc captcha jinja2 django-pylibmc django-simple-captcha python3-ldap mysqlclient
pip3 install future sqlalchemy==1.4.3
systemctl start mariadb ; systemctl enable mariadb
mysql_secure_installation

mysql -u root -p
create database ccnet_db character set = 'utf8';
create database seafile_db character set = 'utf8';
create database seahub_db character set = 'utf8';
create user seacloud@localhost identified by 'StrongDBPassw0rd';
grant all privileges on ccnet_db.* to seacloud@localhost identified by 'StrongDBPassw0rd';
grant all privileges on seafile_db.* to seacloud@localhost identified by 'StrongDBPassw0rd';
grant all privileges on seahub_db.* to seacloud@localhost identified by 'StrongDBPassw0rd';
flush privileges;
exit

mkdir -p /var/www/seafile ; cd /var/www/seafile
wget https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.7_x86-64.tar.gz
tar xvf seafile-server_8.0.7_x86-64.tar.gz ; mv seafile-server-8.0.7/ seafile-server
cd  seafile-server
./setup-seafile-mysql.sh

./seafile.sh start
./seahub.sh start

nano /var/www/seafile/conf/gunicorn.conf.py
bind = "0.0.0.0:8000"
./seahub.sh restart
/var/www/seafile/seafile-server/seafile.sh stop
/var/www/seafile/seafile-server/seahub.sh stop

nano /etc/systemd/system/seafile.service
[Unit]
Description=Seafile
After= mysql.service
After=network.target

[Service]
Type=forking
ExecStart=/var/www/seafile/seafile-server/seafile.sh start
ExecStop=/var/www/seafile/seafile-server/seafile.sh stop

[Install]
WantedBy=multi-user.target

nano /etc/systemd/system/seahub.service
[Unit]
Description=Seafile
After= mysql.service
After=network.target

[Service]
Type=forking
ExecStart=/var/www/seafile/seafile-server/seahub.sh start
ExecStop=/var/www/seafile/seafile-server/seahub.sh stop

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl start seafile ; systemctl enable seafile
systemctl start seahub ; systemctl enable seahub

admin@example.com/yourpassword
________________________________________________________________________________________


No comments:

Post a Comment