基于LNMP实现动静分离,PHP+Memcached实现会话保持一、Nginx+PHP+Mysql+Memcache拓扑图:环境搭建:Nginx代理:172.18.123.10nginx-1.8.0Memcached:172.18.123.50memcached-1.4.15Nginxweb:172.18.123.20nginx-1.8.0PHP:172.18.123.21php-5.4.26xcache-3.2.0php扩展memcache..
分类:
Web程序 时间:
2016-05-25 11:30:33
阅读次数:
984
安装前准备:1.1本实例运行环境说明:操作系统版本:CentOS7首先,要先搭建Zabbix运行环境:LNMP(Linux+nginx+MySQL+PHP(5.4以上))CentOS7Ningx1.9.10Php7Mysql5.61.2安装包下载1.2.1官网安装包更新地址:http://www.zabbix.com/download.php2.23.0下载:cd/usr/local/srcwgeth..
分类:
其他好文 时间:
2016-05-25 11:25:33
阅读次数:
707
系统版本:centos6.4最小化网络环境:无网络,本地yum源编译环境:yum-ygroupinstall"Developmenttools""ServerPlatformDevelopment"nginx:nginx-1.10.0.tar.gztarxfnginx-1.10.0.tar.gzcdnginx-1.10.0./configure--prefix=/usr/local/nginx\--sbin-path=/usr/sbin/nginx\--co..
分类:
其他好文 时间:
2016-05-23 19:25:58
阅读次数:
196
nginx、fastCGI、php-fpm关系梳理 前言: Linux下搭建nginx +memached+php (LNMP)的时候,nginx.conf中配需要配置fastCGI,php需要安装php-fpm扩展并启动php-fpm守护进程,nginx才可以解析php脚本。那么,这样配置的背后原... ...
分类:
Web程序 时间:
2016-05-23 13:23:19
阅读次数:
207
http://yangjunwei.com/a/723.html 分析Centos系统下LNMP频繁502 Bad Gateway问题 2012-01-28 杨俊伟 发表评论(1) 最近VPS总是出现 Nginx 502 Bad Gateway 错误,导致网页无法正常访问,但FTP和SSH正常连接, ...
分类:
Web程序 时间:
2016-05-22 13:51:57
阅读次数:
322
1:基础环境准备[root@node1~]#cat/etc/redhat-release
CentOSLinuxrelease7.2.1511(Core)
[root@node1~]#uname-r
3.10.0-327.18.2.el7.x86_64
[root@node1~]#getenforce
Disabled2:编译安装Nginx2.1准备工作[root@node1~]#useradd-u7005-s/sbin/nologin-Mnginx
[root@node1~]..
分类:
其他好文 时间:
2016-05-20 19:52:30
阅读次数:
1162
#Nginx安装#nginx-1.6.3.tar.gz
yuminstallopensslopenssl-devel-y
yuminstallpcrepcre-devel-y
wget-qhttp://nginx.org/download/nginx-1.6.3.tar.gz
useraddwww-s/sbin/nologin-M
tarxfnginx-1.6.3.tar.gz
cdnginx-1.6.3
./configure--user=www--group=www--with-http_ssl_mo..
分类:
其他好文 时间:
2016-05-19 19:32:37
阅读次数:
373
环境:Centos6.6[root@Centos~]#/etc/init.d/iptablesstatus
iptables:Firewallisnotrunning.
[root@Centos~]#getenforce
Disabled
[root@Centos~]#安装Nginx:[root@Centos~]#yum-yremovehttpd
[root@Centos~]#yum-yinstallnginx
[root@Centos~]#chkconfignginxon安装Mysql:[..
分类:
其他好文 时间:
2016-05-19 13:31:29
阅读次数:
227
环境:Centos6.6已完成LNMP安装[root@Centos~]#cd/etc/
[root@Centosetc]#grepmax_execution_timephp.ini
max_execution_time=300
[root@Centosetc]#greppost_max_sizephp.ini
post_max_size=16M
[root@Centosetc]#grep^max_input_timephp.ini
max_input_time=300
[root@Centos..
分类:
其他好文 时间:
2016-05-19 13:30:14
阅读次数:
395
其实,官方文档也说的很清楚了。主要贴一下我遇见的问题。环境:LNMP(LAMP没试过,有兴趣的同学可以试试,然后发出来)PHP5.3以上版本、php-mbstring模块、php-pdo模块、mysql数据库克隆或者下载代码:https://github.com/star7th/showdoc导入数据库下载代码后,将跟目录的sho..
分类:
其他好文 时间:
2016-05-19 13:25:56
阅读次数:
2701