Pencil OJ 02 安装
2015-07-24 11:49
183 查看
Mongo
官方的安装方法
官方教程已经很好啦,这里就不罗嗦了。源码编译
待补。我是从这里看到的。遇到的问题
启动时的警告信息
2015-03-06T21:01:15.526-0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2015-03-06T21:01:15.526-0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
解决方法:
stackoverflow上的回答
Official MongoDB documentation gives several solutions for this issue. You can also try this solution, which worked for me:
Open
/etc/init/mongod.conffile.
Add the lines below immediately after
chown $DEAMONUSER /var/run/mongodb.pidand before
end script.
Restart mongod (service mongod restart).
Here are the lines to add to
/etc/init/mongod.conf:
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
That's it!
shareimprove this answer
edited Apr 2 at 7:56
answered Mar 21 at 10:59
可惜我英语太渣,居然没有理解这句话(看漏了个单词before,然后就加在
end script后面了):Add the lines below immediately after
chown $DEAMONUSER /var/run/mongodb.pidand before
end script.
service mongod stop 不起作用
返回信息:stop: Unknown instance
解决方法:
删除
/var/lib/mongodb/mongod.lock,然后重启。
Atom
不能显示中文?
http://atom-china.org/t/linux/85步骤
打开 style.less 文件 ( 唤出 Command Palette 找到 Open Your Stylesheet )。
粘贴下面代码并保存。(其中 "ubuntu mono" 、"ubuntu" 替换为你希望的西文字体名)。
/* 等宽字体 */ @mono-font-family: "ubuntu mono", "Hiragino Sans GB", "Microsoft YaHei","WenQuanYi Micro Hei", sans-serif; /* 非等宽字体 */ @font-family: "ubuntu", "Hiragino Sans GB", "Microsoft YaHei","WenQuanYi Micro Hei", sans-serif; html, body, ol, ul, li, h1, h2, h3, h4, h5, h6, div, p, span, pre, section, input, textarea, .atom-panel, .status-bar, .tree-view, .title, .current-path, .tooltip { font-family: @font-family; } .autocomplete-plus span, code, .-tree-view-, .symbols-view, .editor { font-family: @mono-font-family; } .editor { font-size: 14px; }
相关文章推荐
- php -- PDO属性设置
- Python字符串转换成浮点数函数分享
- HTML5 audio标签的使用
- 安卓有哪些很好用的小众APP
- 成功者的8个心态
- Spring MVC 框架搭建及详解
- 循环(打印一些小东西)
- java线程安全与同步机制
- 7-24 输入信息的格式判断
- hdoj 1002 A + B Problem II
- 欢迎使用CSDN-markdown编辑器
- 关于国际化的两种方式的用法
- python:undefined symbol: PyUnicodeUCS*问题
- 大型网站架构体系的演变
- Dropzone的使用方法
- 关于国际化的两种方式的用法
- mod_jk notes
- (转)Java实现Web Service过程中处理SOAP Header的问题
- MySql分页和Oracle分页
- Swift开发教程--使用Storyboard进行界面跳转