禅道版本升级更新
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,然后点击访问禅道:
閱讀更多 愛踢人生 的文章