原服务器:bitnami版本gitlab版本8.14.3目标服务器:源安装gitlab版本:9.1.1备份方法:原机器无gitlab-rake命令切换到git用户,执行bundle命令,进行备份$/opt/bitnami/apps/gitlab/htdocs
$bundleexecbin/rakegitlab:backup:createRAILS_ENV=production修改备份结果存放目录..
分类:
其他好文 时间:
2017-05-09 09:32:26
阅读次数:
256
错误: rake aborted! Gem::LoadError: You have already activated rake 10.3.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your comm ...
分类:
系统相关 时间:
2017-05-06 14:22:20
阅读次数:
201
Got timeout reading communication packets解决方法 http://www.th7.cn/db/mysql/201702/225243.shtml [Note] Aborted connection xxxx to db:问题现象:在tail -f/data/l ...
分类:
其他好文 时间:
2017-05-03 10:28:41
阅读次数:
1580
svn,git,scp,rsync,rake,ssh,wget,axel,aria2,nohup,grep,tail,siege,mitmproxy,ulimit,netstat,lsof
scp 把本地文件上传到server上 scp -P 1234 config/cert/dev/client.pem dev@xx.xxx.xxx:/srv/rorapps/fgcc/config/cert/production 把server数据传到本地 scp fgww:/srv/rorapps ...
分类:
Web程序 时间:
2017-04-23 18:09:36
阅读次数:
268
1 数据库建好以后,需要增加新字段的经历 2 3 ruby script/rails generate migration add_name_to_product name:string 4 rake db:migrate ...
分类:
数据库 时间:
2017-04-06 17:40:24
阅读次数:
205
1 caopu@caopu-ThinkPad-X1:~/demo$ rake db:migrate 2 == 20170329075038 CreateUsers: migrating ====================================== 3 -- create_table(... ...
分类:
其他好文 时间:
2017-03-30 13:44:52
阅读次数:
329
1.周期性计划任务: $crontab -e 0 0 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create $service crond restart 每天凌晨备份gitlab的数据 2.删除过期的备份文件: 因为每天都会进行一次备份,而备份... ...
分类:
其他好文 时间:
2017-03-22 13:10:05
阅读次数:
129
Job aborted due to stage failure: Task not serializable: If you see this error: The above error can be triggered when you intialize a variable on the ...
分类:
其他好文 时间:
2017-03-21 16:51:29
阅读次数:
211
Showglobalstatus在Showglobalstatus输出中的项可以用mysqladmin-r-i1ext代替,结果一样,获取的是mysql数据库状态变量的每秒累计值,Showstatus则是代表获取当前值,但是会有一些参数会一致.Aborted_clients由于客户端没有正确关闭连接导致客户端终止而中断的连接数。除了网络原因..
分类:
数据库 时间:
2017-03-14 13:56:57
阅读次数:
2958