07 2017 档案

linux 安装redis
摘要:1.先安装redis wget http://download.redis.io/releases/redis-2.8.3.tar.gz tar xzf redis-2.8.3.tar.gz cd redis-2.8.3 make 跳到根目录 mkdir /usr/local/redis cd /u 阅读全文

posted @ 2017-07-18 10:12 orangeGame 阅读(156) 评论(0) 推荐(0)

linux 安装nginx和php
摘要:nginx安装 本文是介绍使用源码编译安装,包括具体的编译参数信息。 正式开始前,编译环境gcc g++ 开发库之类的需要提前装好。 安装make: 安装g++: 一般我们都需要先装pcre, zlib,前者为了重写rewrite,后者为了gzip压缩。 1.选定源码目录 可以是任何目录,本文选定的 阅读全文

posted @ 2017-07-16 20:29 orangeGame 阅读(7847) 评论(0) 推荐(1)

PHP编译configure时常见错误
摘要:1、configure: error: No curses/termcap library found 网上有的说法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5 其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误, 阅读全文

posted @ 2017-07-15 01:53 orangeGame 阅读(598) 评论(0) 推荐(0)

linux下安装php make: *** [sapi/cli/php] 错误 1 和 [ext/fileinfo/libmagic/apprentice.lo] Error 1的解决方法
摘要:make: *** [sapi/cli/php] 错误 1 #make clean #make 1G 内存阿里云centos编译php5.6时遇到[ext/fileinfo/libmagic/apprentice.lo] Error 1的解决方法 ./configure --disable-file 阅读全文

posted @ 2017-07-15 01:50 orangeGame 阅读(292) 评论(0) 推荐(0)

linux修改SSH远程登录端口 --服务器安全篇
摘要:1、修改SSH远程登录端口为5000 输入 vi/etc/ssh/sshd_config Port 5000 #把’#Port 22’修改为’Port 5000’;(切记将#号去掉才会生效) #AddressFamilyany #ListenAddress0.0.0.0 #ListenAddress 阅读全文

posted @ 2017-07-14 22:20 orangeGame 阅读(479) 评论(0) 推荐(0)

linux 部署出现Fatal error: Class 'DOMDocument' not found。
摘要:今天用PHP解析xml时出现如下错误:php Fatal error: Class 'DOMDocument' not found。 环境:CentOS 5.6; PHP 5.3.5 解决方法: #yum -y install php-dom #apachectl restart 或者 servic 阅读全文

posted @ 2017-07-08 17:29 orangeGame 阅读(372) 评论(0) 推荐(0)

mysql开启远程访问权限
摘要:处于安全考虑,数据库本不建议随便开启远程访问权限!! 本文出于开发方便考虑! 1.通过控制台登录 linux 的mysql; 2.use mysql; 会提示:Database changed; 3. SELECT User, Password, Host FROM user; 会出现(或许多两条) 阅读全文

posted @ 2017-07-07 00:55 orangeGame 阅读(201) 评论(0) 推荐(0)