摘要: 1,安装: #brew install supervisor 默认会安装在/usr/local/Cellar/supervisor目录 2,在etc下面新建supervisor.conf 文件,复制下面的代码(部分需要自行修改) [inet_http_server] port = 127.0.0.1 阅读全文
posted @ 2017-01-13 14:55 hxyphp 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 下载解压, #cd php-7.0.4 编译执行命令: #./configure --prefix=/usr/local/php7.0.4 --enable-mbstring --with-curl --with-gd --with-config-file-path=/usr/local/php7. 阅读全文
posted @ 2016-03-14 10:23 hxyphp 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 最近要跑一个数据量比较大的脚本,刚开始在浏览器页面访问发行nginx 5.4 超时, 又不想去修改nginx的连接时间,只能在服务器执行了, 执行方法:进入到ci 的根目录:#php index.php 控制器 方法 #php index.php home index 阅读全文
posted @ 2016-03-04 17:09 hxyphp 阅读(2695) 评论(0) 推荐(0) 编辑
摘要: 修改ssh的默认端口1、编辑ssh配置文件:#vi/etc/ssh/ssh_config #vi/etc/ssh/sshd_config以上这2个文件,都去掉#port22前“#”,将22改为自定义端口,比如3333#vi/etc/service将ssh相关端口改为3333:有好几处... 阅读全文
posted @ 2015-10-10 15:11 hxyphp 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 0 4 * * 1 flock -xn /tmp/oneSendTemp.lock -c /home/check_a/h_demand.sh > /dev/null 2>&1 阅读全文
posted @ 2015-09-25 15:06 hxyphp 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1)在/etc/sysconfig/ 下新建iptables文件,添加如下代码: *filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [4:528]-A INPUT -m state --state RELATED,ESTAB... 阅读全文
posted @ 2015-09-25 14:54 hxyphp 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 解决方法:1,首先要将隐藏文件显示出来2,找到lock的所在目录,找到.svn/lock 文件,将其删除即可 阅读全文
posted @ 2015-09-10 10:34 hxyphp 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 终端执行命令:显示:#defaults write com.apple.finder AppleShowAllFiles -bool true隐藏:#defaults write com.apple.finder AppleShowAllFiles -bool false 阅读全文
posted @ 2015-09-10 10:31 hxyphp 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 在连接数据库时,报这个错误,是/var/lib/mysql/ 目录下没有mysql.sock文件,在服务器搜索myslq.sock文件,我的是在/tmp/mysql.sock解决方法是加一个软链:ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock搞定,收工... 阅读全文
posted @ 2015-09-08 21:17 hxyphp 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 通过brew安装的php可以通过brew link和brew unlink来切换不同版本#brew list#brew unlink php56#brew link php55 阅读全文
posted @ 2015-07-13 15:57 hxyphp 阅读(289) 评论(0) 推荐(0) 编辑