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