目錄
- Upgrade from 8.0.X to 9.0.X
- Upgrade from 7.1 to 8.0
- Upgrade from 7.0 to 7.1
- Upgrade from 5.1 to 6.2
Upgrade from 8.0.X to 9.0.X
* V9 之後不再 Support RHEL 了. 所以建議遷移到 Ubunut 22.04
Upgrade from 7.1 to 8.0
# Test on CentOS 7
yum install python3-devel mysql-devel gcc gcc-c++ -y
pip3 install future
pip3 install mysqlclient==2.0.1 sqlalchemy==1.4.3
service seahub stop && service seafile stop
./seafile-server-8.0.8/upgrade/upgrade_7.1_8.0.sh
Change permission & Start Service
chown -R seafile. seafile-server-8.0.8
service seafile start && service seahub start
Debug - Seahub
sudo -u seafile /bin/bash
./seahub.sh start # 由 start-fastcgi 8000 變成了 start
Upgrade from 7.0 to 7.1
For CentOS 7
yum install python3 python3-setuptools python3-pip -y
python3 -m pip install --upgrade pip
pip3 install Pillow pylibmc captcha jinja2
pip3 install sqlalchemy==1.3.8
pip3 install django-pylibmc django-simple-captcha
service seahub stop && service seafile stop
seafile-server-7.1.5/upgrade/upgrade_7.0_7.1.sh
Change permission & Start Service
chown -R seafile. seafile-server-7.1.5
service seafile start && service seahub start
Debug - Seahub
# Running Seahub in FastCGI mode should give you better (more detailed) error messages.
sudo -u seafile /bin/bash
./seahub.sh start-fastcgi 8000
Upgrade from 5.1 to 6.2
5.1 -> 6.0 -> 6.1 -> 6.2
1) Backup first #
2) Upgrade
cd /home/seafile
wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server...
tar -zxf seafile-server_N_x86-64.tar.gz
mv seafile-server-*.tar.gz installed
./seafile-server-latest/seahub.sh stop
./seafile-server-latest/seafile stop
# Run upgrade script
./seafile-server-x.x.x/upgrade/upgrade_6.1_6.2.sh
3) Change Permission
chown -R seafile. seafile-server-x.x.x
4) Start Service by script(For Debug)
sudo -u seafile ./seafile-server-latest/seafile.sh start # systemctl start seafile
sudo -u seafile ./seafile-server-latest/seahub.sh start # systemctl start seahub
5) Checking
netstat -ntlp | grep -e 8000 -e 8082