12 2015 档案

摘要:注意:服务器:Ubuntu Server 14.04,我的项目比较小,所有操作都使用 root ,建议最好新建一个用户(需要有管理员权限,否则在后面使用hooks自动部署代码时会出现各种权限问题,很蛋疼的)。 一、搭建GIT服务器 1. 安装GIT 1.1 安装前最好先更新apt get... 阅读全文
posted @ 2015-12-31 10:45 陈朔 阅读(679) 评论(0) 推荐(0)
摘要:PHP文件上传类 阅读全文
posted @ 2015-12-15 11:41 陈朔 阅读(264) 评论(0) 推荐(0)
摘要:json_encode($result, JSON_UNESCAPED_UNICODE); 阅读全文
posted @ 2015-12-09 18:00 陈朔 阅读(522) 评论(0) 推荐(0)
摘要:一、修改配置文件:vim /etc/mysql/my.cnf,找到 bind-address = 127.0.0.1注释掉这行,如:#bind-address = 127.0.0.1或者改为:bind-address = 0.0.0.0允许任意IP访问;或者自己指定一个IP地址。重启MySQL服务:... 阅读全文
posted @ 2015-12-01 10:54 陈朔 阅读(191) 评论(0) 推荐(0)