Browse Source

fix bug

main
xiaoz 4 years ago
parent
commit
f0ef24dcdc
  1. 4
      php/install.sh

4
php/install.sh

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
#update system #update system
apt-get update apt-get update
apt-get install -y wget
#install nginx #install nginx
function install_nginx() { function install_nginx() {
cd /usr/local cd /usr/local
@ -17,7 +18,6 @@ function install_nginx() {
#备份配置文件 #备份配置文件
cd /usr/local/nginx/conf cd /usr/local/nginx/conf
cp nginx.conf nginx.conf.bak cp nginx.conf nginx.conf.bak
apt-get install -y wget
wget -P /usr/local/nginx/conf https://github.com/helloxz/dnmp/raw/main/php/nginx.conf wget -P /usr/local/nginx/conf https://github.com/helloxz/dnmp/raw/main/php/nginx.conf
} }
@ -37,7 +37,7 @@ function set_php() {
&& docker-php-ext-enable redis xdebug && docker-php-ext-enable redis xdebug
} }
install_nginx && setting install_nginx && set_php
echo '-----------------------------' echo '-----------------------------'
echo 'nginx + php install success.' echo 'nginx + php install success.'

Loading…
Cancel
Save