在windows8下安装Oracle VM VirtualBox虚拟机,虚拟机中安装的CentOS操作系统,在CentOS中搭建LNMP环境,安装vsftpd服务器,宿主机在phpStorm编程,将代码FTP上传到虚拟机,在宿主机浏览器输入地址,访问虚拟机中php代码页。虚拟机网络使用桥接方式很方便...
分类:
其他好文 时间:
2015-09-23 06:40:24
阅读次数:
443
问题1checkingforxml2-configpath...(cached)/usr/bin/xml2-configcheckingwhetherlibxmlbuildworks...(cached)yescheckingforXSLsupport...yesconfigure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution[root@centos1php-5.3.27]#解决:yuminstal..
分类:
Web程序 时间:
2015-09-22 19:06:52
阅读次数:
457
#!/bin/sh#一键安装LNMP中的php#requiredsoft#libiconv-1.14.tar.gz#libmcrypt-2.5.8.tar.gz#mcrypt-2.6.8.tar.gz#mhash-0.9.9.9.tar.gz#php-5.3.27.tar.gz#php-fpm.conf#安装相关依赖库yuminstallzliblibxmllibjpegfreetypelibpnggdcurllibiconvzlib-devellibxml2-devellibjpe..
分类:
Web程序 时间:
2015-09-22 19:03:30
阅读次数:
187
nginx在处理并发方面有着很不错的表现,相对于较为常用的LAMP平台(Linux+Apache+Mysql+PHP),LNMP也越来越多的被使用,当站点的并发访问量较大时,nginx的确是一个不错的选择,不过nginx与php是通过php-fpm的方式整合的,也就是fastcgi,这要求php-fpm单独启用一个进程,至于如..
分类:
其他好文 时间:
2015-09-21 19:46:27
阅读次数:
291
一个简单的脚本,用来监控502的,如果遇到502,自动重启PHP进程。适用于LNMP环境。以下文件,存放于/root或其它目录:#!/bin/bashMY_URL="http://www.tarena.com.cn/"RESULT=`curl-I$MY_URL|grep"HTTP/1.1502"`if[-n"$RESULT"];then/etc/init.d/php-fpmrestartfi给予可..
分类:
其他好文 时间:
2015-09-21 01:46:20
阅读次数:
188
经过前面学习,对nginx有个大概的了解,来配置LNMP;只要是在系统安装过程中选择安装比较齐全的包,基本上系统都能满足安装要求,下面是我一个一个测试的,基本上全部安装所需的库文件,放心安装;[root@mgmserver ~]# rpm -qa |grep zlibzlib-devel-1.2.3...
分类:
Web程序 时间:
2015-09-19 13:48:45
阅读次数:
281
错误代码:Fatalerror:xcache_count():xcache.admin.userand/orxcache.admin.passsettingsisnotconfigured.Makesureyou‘vemodifiedthecorrectphpinifileforyourphpusedinwebserver.in/home/xxx/xcache/cacher/index.phponline259错误原因分析:查看phpinfo()里的xcache信息发现自..
分类:
系统相关 时间:
2015-09-18 18:53:18
阅读次数:
242
参考内容:http://www.cnblogs.com/argb/p/3604340.html早上修改了php的配置文件,php-fpm.conf,重启nginx,php-fpm后发现网站启动不来了。nginx错误日志为:2015/09/1810:11:30[error]15081#0:*1073FastCGIsentinstderr:"PHPmessage:PHPWarning:require_once(Zend/Application.p..
分类:
Web程序 时间:
2015-09-18 18:49:32
阅读次数:
222
一.环境系统CentOS6.4x64最小化安装(事先安装好LNMP环境)二.安装基础软件包[root@rsync~]#yuminstallperl-CPAN-y
[root@rsync~]#yuminstallmod_perl-y
[root@rsync~]#yuminstallmod_perl-devel-y
[root@rsync~]#yuminstallfcgi-perl-y
[root@rsync~]#yuminstallfcgi-devel-y三...
分类:
其他好文 时间:
2015-09-18 18:48:17
阅读次数:
322
之前都用的lamp,这次配置一个lnmp来看看,试试Nginx是不是好用关闭SELINUXvi/etc/selinux/config#SELINUX=enforcing#注释掉#SELINUXTYPE=targeted#注释掉SELINUX=disabled#增加shutdown-rnow#重启系统安装ngnix安装GCC编译器及相关工具yum-yinstallgccgcc-c++autoconfautomake..
分类:
数据库 时间:
2015-09-18 12:05:43
阅读次数:
257