摘要: 先编辑一个php文件放在/usr/www/crontab.phpchmod +x /usr/www/crontab.php 可执行文件crontab -e 输入计划任务执行脚本* * * * * /usr/local/php/bin/php -f /mnt/hgfs/sharefile/wwwroo... 阅读全文
posted @ 2015-12-25 09:59 fover的天地 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #user nobody;worker_processes 1;error_log /usr/local/nginx/logs/error.log debug;#error_log logs/error.log notice;#error_log logs/error.log info... 阅读全文
posted @ 2015-12-18 17:46 fover的天地 阅读(171) 评论(0) 推荐(0) 编辑
摘要: [global]pid = /usr/local/php/var/run/php-fpm.piderror_log = /usr/local/php/var/log/php-fpm.loglog_level = notice[www]#listen = /tmp/php-cgi.socklisten... 阅读全文
posted @ 2015-12-18 17:45 fover的天地 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #! /bin/sh# chkconfig: 2345 55 25# Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and# run 'update-rc.d -f nginx defa... 阅读全文
posted @ 2015-12-18 17:42 fover的天地 阅读(3091) 评论(0) 推荐(0) 编辑
摘要: #! /bin/sh### BEGIN INIT INFO# Provides: php-fpm# Required-Start: $remote_fs $network# Required-Stop: $remote_fs $network# Default-Sta... 阅读全文
posted @ 2015-12-18 17:40 fover的天地 阅读(1945) 评论(1) 推荐(1) 编辑
摘要: 前端H5代码: Title发送后台CI代码:用户先登录,登录后,进入chat/index页面include_once('Auth.php');class Chat extends Auth { public function __construct(){ paren... 阅读全文
posted @ 2015-12-06 16:18 fover的天地 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 下 首先安装 subversionapt-get install subversion创建文件夹 mkdir /mnt/hgfs/sharefile/wwwroot/svn建立版本库 svnadmin create /mnt/hgfs/sharefile/wwwroot/svnroot... 阅读全文
posted @ 2015-11-22 20:46 fover的天地 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 默认的lnmp没有开启pathinfo模式,但很多框架需要用到。cd /usr/local/nginx/confvim enable-php.conflocation ~ [^/]\.php(/|$){ # comment try_files $uri =404; to enable pathin... 阅读全文
posted @ 2015-11-22 19:51 fover的天地 阅读(156) 评论(0) 推荐(0) 编辑
摘要: thinkphp 3.2.3 配置了mysql主从,thinkphp运行于win 7 ,mysql在虚拟机下。主Ubuntu 14 192.168.116.206从Centos 7 192.168.116.205测试数据库 testdb主从db配置php业务逻辑最终示例!完美!~ 阅读全文
posted @ 2015-11-19 17:17 fover的天地 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 查看了下mysql的my.cnf配置文件,bind_address 和 skip_networking 都注销了,root用户的host也设置为%了,但是就是一直无法远程连接,出现113的问题。网上说是防火墙的问题,于是关闭防火墙service firewalld stop (centos 7)问题... 阅读全文
posted @ 2015-11-19 16:16 fover的天地 阅读(298) 评论(0) 推荐(0) 编辑