pull/109/head
midoks 6 years ago
parent 40a0a389c8
commit d37806f4e0
  1. 2
      cli.sh
  2. 19
      plugins/mysql/versions/5.5/install.sh

@ -11,7 +11,7 @@ mw_start(){
mw_start_debug(){ mw_start_debug(){
gunicorn -b :7200 app:app & gunicorn -b :7200 app:app &
python task.py & python task.py
} }
mw_stop() mw_stop()

@ -9,25 +9,24 @@ serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/bt_install.pl install_tmp=${rootPath}/tmp/bt_install.pl
openrestyDir=${serverPath}/source/openresty mysqlDir=${serverPath}/source/mysql
Install_mysql() Install_mysql()
{ {
mkdir -p ${openrestyDir} mkdir -p ${mysqlDir}
echo '正在安装脚本文件...' > $install_tmp echo '正在安装脚本文件...' > $install_tmp
if [ ! -f ${openrestyDir}/openresty-1.11.2.5.tar.gz ];then if [ ! -f ${mysqlDir}/mysql-5.5.62.tar.gz ];then
wget -O ${openrestyDir}/openresty-1.11.2.5.tar.gz https://openresty.org/download/openresty-1.11.2.5.tar.gz wget -O ${mysqlDir}/mysql-5.5.62.tar.gz https://github.com/mysql/mysql-server/archive/mysql-5.5.62.tar.gz
fi fi
cd ${openrestyDir} && tar -zxvf openresty-1.11.2.5.tar.gz cd ${mysqlDir} && tar -zxvf mysql-5.5.62.tar.gz
cd ${openrestyDir}/openresty-1.11.2.5 && ./configure --prefix=$serverPath/openresty \ # cd ${mysqlDir}/mysql-5.5.62 && ./configure --prefix=$serverPath/mysql \
--with-openssl=$serverPath/source/lib/openssl-1.0.2q \ # --with-openssl=$serverPath/source/lib/openssl-1.0.2q \
--with-http_stub_status_module && make && make install && \ # --with-http_stub_status_module && make && make install && \
echo '1.11.2' > $serverPath/openresty/version.pl echo '5.5' > $serverPath/mysql/version.pl
echo '安装完成' > $install_tmp echo '安装完成' > $install_tmp
} }

Loading…
Cancel
Save