上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
摘要: 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 阅读(6535) 评论(0) 推荐(0)
摘要: 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 阅读(958) 评论(0) 推荐(0)
摘要: 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 阅读(378) 评论(0) 推荐(0)
摘要: 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 阅读(850) 评论(0) 推荐(0)
摘要: 首先创建一个发送邮件的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 阅读(1893) 评论(0) 推荐(0)
摘要: 在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 阅读(988) 评论(0) 推荐(0)
摘要: 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 阅读(367) 评论(0) 推荐(0)
摘要: 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 阅读(915) 评论(0) 推荐(0)
摘要: 最近在安装db-migrate的时候,有一个依赖包sqlite3怎样都安装不了,检查下来应该是由于node_sqlit3.node文件无法从Amazon下载导致(源码安装也报错,没有研究过原因)。于是就打算直接下载安装包安装,方法如下:在浏览器中输入https://registry.npmjs.or... 阅读全文
posted @ 2016-01-04 11:47 GreatK 阅读(1632) 评论(0) 推荐(0)
摘要: 首先参考这篇文章:http://docs-static.daocloud.io/daocloud-services/volume-controller但是按照这篇文章,最后的主题是没有办法应用上去的,原因在于需要修改项目中的config.example.js文件,在production节点中添加如下... 阅读全文
posted @ 2015-12-30 17:06 GreatK 阅读(249) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页