会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
IWS
Talk is cheap. Show me the code. -- Torvalds, Linus (2000-08-25).
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
24
下一页
2016年7月7日
Linux useful command
摘要: 查看linux系统里面的各个目录、文件夹的大小和使用情况, 先切换到需要查看的目录,如果需要查看所有linux目录的使用情况就直接切换到系统跟目录,然后执行; du -h --max-depth=1 说明 --max-depth=1 这个参数表示查看文件夹的深度为1,这里要指定,否则如果目录和文件过
阅读全文
posted @ 2016-07-07 16:21 GreatK
阅读(197)
评论(0)
推荐(0)
2016年6月21日
Centos 7: 改变docker的image存放目录
摘要: steps: 1. mkdir /home/docker(你想要docker存放image的目录) 2. systemctl stop docker 3. vi /usr/lib/systemd/system/docker.service 4. 添加 -g /home/docker 5. cp -R
阅读全文
posted @ 2016-06-21 15:13 GreatK
阅读(6537)
评论(0)
推荐(0)
centos 7: 迁移MySQL目录
摘要: Steps: 1. systemctl stop mariadb 2. mkdir data destination folder, ex: /home/mysql 3. cp -R /var/lib/mysql/* /home/mysql 4. edit /etc/my.cnf datadir =
阅读全文
posted @ 2016-06-21 13:25 GreatK
阅读(959)
评论(0)
推荐(0)
2016年3月28日
docker: useful commands
摘要: docker build -t stock_data_repo_instance24 . docker run -v /opt/log:/opt/log -d -it stock_data_repo_instance24 docker build -t web_instance1 .docker r
阅读全文
posted @ 2016-03-28 16:52 GreatK
阅读(384)
评论(0)
推荐(0)
2016年3月7日
OSX: node中安装zeromq
摘要: 1. brew install pkg-config2. brew install zmq3. export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"4. npm install zmq -gdone.
阅读全文
posted @ 2016-03-07 14:16 GreatK
阅读(855)
评论(0)
推荐(0)
2016年2月16日
docker: 定时检查docker container的运行状态并发邮件报警
摘要: 首先创建一个发送邮件的bash脚本 - send_mail.sh: #!/bin/bash curl -s --user 'api:key-xxxxxxxxxxxxx' \ https://api.mailgun.net/v3/xxxxxxx/messages \ -F from='Support
阅读全文
posted @ 2016-02-16 15:21 GreatK
阅读(1895)
评论(0)
推荐(0)
2016年1月29日
docker: 解决centos7下cgroup.procs: no such device的错误
摘要: 在centos7下,运行docker run的时候会发生cgroup.procs: no such device的错误,解决方法是编辑 /lib/systemd/system/docker.service 文件,在其中的 ExecStart=/usr/bin/docker daemon -H fd:
阅读全文
posted @ 2016-01-29 18:47 GreatK
阅读(992)
评论(0)
推荐(0)
2016年1月6日
Redis: 改变HomeBrew安装的数据库文件目录
摘要: vi /usr/local/etc/redis.conf修改dir "/Volumes/KG's Big YO/Documents/redis_data"最后,启动Redis:redis-server /usr/local/etc/redis.confDone.原文:http://www.lovew...
阅读全文
posted @ 2016-01-06 13:49 GreatK
阅读(369)
评论(0)
推荐(0)
MySQL: 改变Homebrew安装MySQL/MariaDB的数据库文件目录
摘要: 1. brew install mariadb2. mysql_install_db --verbose --user=$USER --basedir=/usr/local/Cellar/mariadb/10.1.8 --datadir="/Volumes/KG's Big YO/Documents...
阅读全文
posted @ 2016-01-06 13:40 GreatK
阅读(918)
评论(0)
推荐(0)
2016年1月4日
Node: 在Mac中离线安装Sqlite3
摘要: 最近在安装db-migrate的时候,有一个依赖包sqlite3怎样都安装不了,检查下来应该是由于node_sqlit3.node文件无法从Amazon下载导致(源码安装也报错,没有研究过原因)。于是就打算直接下载安装包安装,方法如下:在浏览器中输入https://registry.npmjs.or...
阅读全文
posted @ 2016-01-04 11:47 GreatK
阅读(1636)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
24
下一页
公告