摘要: git 合并冲突(需安装的工具:Comman_Line_Tools) 获取主库所有分支 git fetch main 拉取主库master代码进行合并 git pull main master 根据主库特性分支新建本地分支并切换到新分支 git checkout -b lyc-f-test-inte 阅读全文
posted @ 2016-04-21 16:54 秋风落叶. 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 优点:不需要启动web服务器 首先定位到index.php目录 php index.php controller_name function_name $param 如果配置文件有多个需指定具体的 CI_ENV=production php index.php controller_name fun 阅读全文
posted @ 2016-04-20 15:16 秋风落叶. 阅读(432) 评论(0) 推荐(0) 编辑
摘要: /** * @param $data 需要加密的字符串 * @param $key 加密的密码 * @return string 加密后的字符串 */function _encrypt($data, $key){ $key = md5($key); $x = 0; $len = strlen($da 阅读全文
posted @ 2016-04-18 13:18 秋风落叶. 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 取消主键保护 SET SQL_SAFE_UPDATES = 0 阅读全文
posted @ 2016-04-16 13:56 秋风落叶. 阅读(894) 评论(0) 推荐(0) 编辑
摘要: git branch --set-upstream-to origin/lyc-f-pub-event --查看本地分支的提交远程地址 git branch -vv 阅读全文
posted @ 2016-04-11 15:08 秋风落叶. 阅读(770) 评论(0) 推荐(0) 编辑
摘要: command line tolls 阅读全文
posted @ 2016-04-08 15:36 秋风落叶. 阅读(278) 评论(0) 推荐(0) 编辑
摘要: DELIMITER $$ DROP FUNCTION IF EXISTS `get_distance`$$ CREATE FUNCTION `get_distance`(lat1 DECIMAL(9,6),lng1 DECIMAL(9,6),lat2 DECIMAL(9,6),lng2 DECIMA 阅读全文
posted @ 2016-04-07 10:09 秋风落叶. 阅读(423) 评论(0) 推荐(0) 编辑
摘要: nginx.pi无法运行 ssued a nginx -s stop and after that I got this error when trying to reload it. [error]: invalid PID number "" in "/var/run/nginx.pid" Th 阅读全文
posted @ 2016-04-05 15:04 秋风落叶. 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 应用配置文件 server { listen 80; server_name local.core.api; root /Users/li/Documents/www/CoreAPI/; location / { index index.php; autoindex on; if (!-f $req 阅读全文
posted @ 2016-04-05 14:52 秋风落叶. 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 下列是nginx.conf全局配置文件 worker_processes 1; error_log /tmp/logs/nginx-error.log; events { worker_connections 1024; } http { include mime.types; default_ty 阅读全文
posted @ 2016-04-05 14:51 秋风落叶. 阅读(126) 评论(0) 推荐(0) 编辑