Commit 31611fd7 authored by 不素盒尚01's avatar 不素盒尚01

stable

parent 3b1633a1
......@@ -6,9 +6,6 @@ error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
......@@ -27,91 +24,9 @@ http {
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name localhost;
root /home/admin/production;
#charset koi8-r;
access_log logs/host.access.log main;
#location / {
# root html;
# index index.html index.htm;
#}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root html;
#}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
include /home/admin/env/nginx/conf.d/*.conf;
}
chmod +x scripts/*
mkdir extract
#./scripts/nginx.sh
./scripts/nginx.sh
./scripts/php.sh
tar -zxvf source/php-7.1.3.tar.gz -C extract/
cd extract/php-7.1.3/
./configure --prefix=/home/admin/env/php\
--enable-fpm\
--with-config-file-path=/root/enc/php/etc\
--with-openssl\
--with-mbstring\
--with-mysql=mysqlnd\
--with-mysqli=mysqlnd\
--with-mcrypt=/usr/include\
--with-pdo-mysql=/usr/bim/mysql\
--with-gd\
--with-iconv\
--with-zlib\
--enable-xml\
--enable-bcmath\
--enable-shmop\
--enable-sysvsem\
--enable-inline-optimization\
--enable-mbregex\
--enable-gd-native-ttf\
--enable-pcntl\
--enable-socketes\
--with-xmlrpc\
--enable-zip\
--enable-soap\
--without-pear\
--with-gettext\
--enable-session\
--with-curl\
--with-jpeg-dir\
--with-freetype-dir\
--enable-opcache
make && make install
cd ../..
\cp -f conf/php.ini /home/admin/env/php/etc/php.ini
\cp -f conf/php-fpm.conf /home/admin/env/php/etc/php-fpm.conf
\cp -f conf/www.conf /home/admin/env/php/etc/php-fpm.d/www.conf
\cp -f conf/php-fpm /etc/init.d/
mkdir /home/admin/env/php/log
mkdir /var/run/php-fpm
chmod +x /etc/init.d/php-fpm
chkconfig --add php-fpm
chkconfig php-fpm on
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment