摘要: 声明:该环境是在黑苹果系统下搭建 安装Homebrew 最近工作环境切换到Mac,所以以OS X Yosemite(10.10.1)为例,记录一下从零开始安装Mac下LNMP环境的过程 确保系统已经安装xcode,然后使用一行命令安装依赖管理工具Homebrew ruby -e "$(curl -f 阅读全文
posted @ 2016-04-02 11:22 秋风落叶. 阅读(392) 评论(0) 推荐(0) 编辑
摘要: drop procedure if exists pro_initUserBirdCount; DELIMITER $$create procedure pro_initUserBirdCount()BEGIN declare uid int(10); declare b int(10) defau 阅读全文
posted @ 2016-03-30 11:11 秋风落叶. 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 比较适用的场景:1.新增功能的数据维护 2.数据结构优化 insert into table_name(user_id,name) select student_id,student_name from students 阅读全文
posted @ 2016-03-30 11:10 秋风落叶. 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 显示所有正在运行的进程,如下命令 ps -A 7237 ? 00:00:24 chrome 7265 ? 00:00:00 kworker/1:0 7411 ? 00:00:00 kworker/0:011336 ? 00:00:00 mysql-workbench11339 ? 00:00:00 阅读全文
posted @ 2016-03-30 11:00 秋风落叶. 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: function baidu_map_api($location=''){ $curl_url = "http://api.map.baidu.com/geocoder?output=json&location=".$location; //初始化 $curl = curl_init(); //设置 阅读全文
posted @ 2016-03-29 13:51 秋风落叶. 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 请求地址 http://api.map.baidu.com/geocoder?location=39.999218,116.336843&output=json 返回数据格式 {status: "OK",result: { location: { lng: 116.336843, lat: 39.9 阅读全文
posted @ 2016-03-29 10:46 秋风落叶. 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 文件压缩与解压 解压 tar zxvf 文件名.tar.gz 压缩 tar zcvf 文件名.tar.gz 目标文件或文件夹 局域网通过scp传输文件 本地传输到其他服务器 scp /home/rain/文件名.tar.gz deploy@192.168.1.231:/home/deploy/文件名 阅读全文
posted @ 2016-03-15 10:41 秋风落叶. 阅读(120) 评论(0) 推荐(0) 编辑
摘要: //声明存储过程 DELIMITER $$create procedure pro_initRecordCityID()BEGIN declare id int(10); declare cityName varchar(20);/*城市名称名称*/ declare b int(10) defaul 阅读全文
posted @ 2016-03-11 15:48 秋风落叶. 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 由于上个章节说名了如何配置SSH Keys,这里clone的方式采用的是SSH Keys 1.clone 远程分支 git clone git@xxxxx.com:root/test.git 2.cd 源代码目录 cd test 3.查看远程仓库的所有分支 git branch -r 4.基于远程 阅读全文
posted @ 2016-03-11 11:03 秋风落叶. 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 说明:git 获取远程代码有两种形式,SSH和HTTPS,建议使用SSH方式,不必要每次都输入帐号密码 配置SSH keys 3.复制公钥,profile setting--》SSH Keys 到这个页面添加即可 阅读全文
posted @ 2016-03-11 10:47 秋风落叶. 阅读(179) 评论(0) 推荐(0) 编辑