Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
junstyle committed Jun 26, 2018
1 parent e90f5fa commit f8695b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion etc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi

cp -rvf ./etc/* /home/etc

service php-fpm reload
service nginx reload
service redis reload
service mysqld reload
1 change: 0 additions & 1 deletion etc/nginx/authorized_user.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
u1:pwd
File renamed without changes.
6 changes: 5 additions & 1 deletion lnmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -120,4 +120,8 @@ install_mysql
install_nginx
install_redis

source ./inc/phalcon.sh
source ./etc.sh


echo '------------------ all over --------------------------'

0 comments on commit f8695b5

Please sign in to comment.