摘要:之前有的朋友问我,CentOS版本怎么安装python的pip,我之前给出的Ubuntu下apt-get的方法 ubuntu 需要先安装下pip吧, apt-get install python-pip 安装requests, pip install requests 但是有的朋友由于是centos
阅读全文
摘要:官网下载源码包 https://nodejs.org/en/download/ source code #下载 wget https://nodejs.org/dist/v4.3.2/node-v4.3.2.tar.gz #解压 tar zxvf node-v4.3.2.tar.gz cd node
阅读全文
摘要:yum安装php5.6 多版本php共存 remi安装方法 http://www.servermom.org/how-to-enable-remi-repo-on-centos-7-6-and-5/2790/ 配置remi https://www.mojowill.com/geek/howto-in
阅读全文
摘要:使用固定连接里的自定义/%postname%/日志标题的缩略版本(日志/页面编辑界面上的日志别名)。因此“This Is A Great Post!”在URI中会变成this-is-a-great-post。nginx.conf中添加伪静态规则location / {if (-f $request_...
阅读全文
摘要:将一个thinkphp项目从apache环境移到nginx1.2上,怎奈,nginx这个版本默认不支持pathinfo模式首先,编辑nginx的虚拟主机配置文件 location ~ .*.(php|php5)?$ { #原有代码 }i...
阅读全文
摘要:[root@localhost vhost]# service nginx restart停止 nginx:[确定]正在启动 nginx:nginx: [warn] conflicting server name "www.abc.com" on 0.0.0.0:80, ignorednginx: ...
阅读全文
摘要:http://www.unixdo.com/Unix_Linux/CentOS65_Nginx140_Php557_MySQL5535.html如果是编译升级php,之前做过nginx的虚拟主机配置的话,记得将php-fpm.conf里的listen修改一下vi /usr/local/php5/et...
阅读全文
摘要:在Nginx安装完成之后,我们可以开启Gzip压缩功能,这里Nginx默认只能对text/html类型的文件进行压缩。下面的指令为开启Gzip的指令:gzip on;gzip_http_version 1.0;gzip_disable "MSIE [1-6].";gzip_types text/pl...
阅读全文
摘要:nginx error_page 404 用 php header 无法跳转之前用Apache的时候,只需要设置ErrorDocument 404 /404.php就可以在 404.php 中根据不同的 REQUEST_URI 跳转到不同的页面去,让从搜索引擎过来的失效URL可以跳转到新的地址去升级...
阅读全文