diff --git a/etc.sh b/etc.sh index e6c131a..fb0c2d7 100644 --- a/etc.sh +++ b/etc.sh @@ -17,4 +17,11 @@ read -p "Please input nginx authorized_user pwd: " auth_user_pass if [ "$auth_user_pass" != "no" ]; then pwd=`openssl passwd -crypt $auth_user_pass` printf "u1:$pwd\n" >>/home/etc/nginx/authorized_user.txt -fi \ No newline at end of file +fi + +cp -rvf ./etc/* /home/etc + +service php-fpm reload +service nginx reload +service redis reload +service mysqld reload \ No newline at end of file diff --git a/etc/nginx/authorized_user.txt b/etc/nginx/authorized_user.txt index 1f9fc88..e69de29 100644 --- a/etc/nginx/authorized_user.txt +++ b/etc/nginx/authorized_user.txt @@ -1 +0,0 @@ -u1:pwd \ No newline at end of file diff --git a/phalcon.sh b/inc/phalcon.sh similarity index 100% rename from phalcon.sh rename to inc/phalcon.sh diff --git a/lnmp.sh b/lnmp.sh index 92619b6..e0d5a11 100644 --- a/lnmp.sh +++ b/lnmp.sh @@ -21,7 +21,7 @@ install_php(){ yum -y install php71u-fpm php71u-cli php71u-xml php71u-gd php71u-mysqlnd php71u-pdo php71u-mcrypt php71u-mbstring php71u-json php71u-pgsql php71u-opcache php71u-pecl-redis chkconfig php-fpm on - + mkdir /home/etc mkdir /home/log @@ -120,4 +120,8 @@ install_mysql install_nginx install_redis +source ./inc/phalcon.sh +source ./etc.sh + + echo '------------------ all over --------------------------' \ No newline at end of file