禪道版本升級更新
1、安裝lampp
cd /tmp
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-5-installer.run --no-check-certificate
chmod +x xampp-linux-x64-1.8.3-5-installer.run
[root@localhost tmp]# ./xampp-linux-x64-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited)
XAMPP Developer Files [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press [Enter] to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
########################################
cd /opt/lampp
./lampp start
卸載
rm -rf /opt/lampp
2、啟動lampp服務
cd /opt/lampp/
./lampp stop
./lampp start ----運行後如果提示apache一直在執行,然後關掉xampp重新開啟應該就可以了
3、進入mysql
mysql -uroot -p -S /opt/lampp/var/mysql/mysql.sock(無密碼,直接enter)
4、更改密碼
mysql -uroot -p -S /opt/lampp/var/mysql/mysql.sock
show databases;
use mysql;
update user set password=PASSWORD('1qaz2wsx') where user='root';
grant all privileges on *.* to 'root'@'%' identified by "1qaz2wsx" with grant option;
flush privileges;
5、備份數據庫 ---------從8.110備份
mysqldump -uroot -h192.168.8.110 -p1qaz2wsx chandao > /opt/chandao.sql
scp chandao.sql 192.168.8.38:/opt
6、3.0BATE1升級到9.1.2過程:
6.1 從8.110備份數據上傳8.38
cd /usr/local
tar -xzf zentao.20180125.tar.gz
6.2 導入禪道需要使用的數據庫和表
mysql -uroot -p -S /opt/lampp/var/mysql/mysql.sock
create database chandao;
use chandao; --------使用數據庫
source /opt/chandao.sql; -------導入數據(注意sql文件的路徑)
show tables; ----查看錶是否導入成功
6.3 更新到9.1.2版本
上傳下載包到/usr/local
tar -xzf zentao.9.1.2.tar.gz
chmod 777 zentao
cd /usr/local/zentao/config
vi my.php #把192.168.8.110改為本機ip
$config->installed = true;
$config->debug = false;
$config->requestType = 'GET';
$config->db->host = 'localhost';
$config->db->port = '3306';
$config->db->name = 'chandao';
$config->db->user = 'root';
$config->db->password = '1qaz2wsx';
$config->db->prefix = 'zt_';
$config->webRoot = '/';
$config->default->domain = '192.168.8.38';
$config->default->lang = 'zh-cn';
6.4 重啟服務
cd /opt/lampp
./lampp stop
./lampp start
登陸網站升級:
http://192.168.8.38/upgrade.php
點繼續更新前先建文件,再點繼續更新:
touch /usr/local/zentao/www/ok.txt
選擇更新的版本3.0BETA1:
到上面那個界面請耐心等待,升級過程請等待,等到finisshed,然後點擊訪問禪道: