动静分离

动静分离

文件的目录写成绝对路径

lnmp至少需要两个location过滤静态与动态,那么把root放在location外面,代表location共享(那么就比location大一级那么相当于每个location都可以共享这个root)

创建www目录

./configure --prefix=/usr/local/php5.3.28 --with-mysql=mysqlnd --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir  --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm  --enable-mbstring --with-mcrypt  --with-gd  --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-short-tags --enable-zend-multibyte --enable-static --with-xsl --with-fpm-user=www  --with-fpm-group=www --enable-ftp

 

 

 

Nginx机制跳转首页的时候,跳转首页找不到权限就给拒绝了,就不会去php拿了(所以到nginx先确定有没有这个首页,如果没有首页为防止目录的内容都让用户看到内部的安全机制就给拒绝了所以变成了权限拒绝了)本地没有php的首页是(哪怕的你index.php的首页是空的也不会被拒绝)

 

存储的服务器不是挂载网页目录上的,是挂载网页目录的一个子目录的

网页文件怎么保持服务器一致的?

我每一天服务器放的都是一样的网页文化,网页代码都是一样的,我代码不更新不会变的(如果开发变,那么我们既要ansible批量分发)

Php有改动的情况 克隆php2的改动

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2018-12-08 10:41  离乡  阅读(144)  评论(0编辑  收藏  举报