zoukankan      html  css  js  c++  java
  • Pencil OJ 02 安装

    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.conf file.
    Add the lines below immediately after chown $DEAMONUSER /var/run/mongodb.pid and 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.pid and 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;
    }
    
  • 相关阅读:
    hdu 2842 Chinese Rings
    Codeforces Round #118 (Div. 1) A 矩阵快速幂
    hdu2604 Queuing
    支付宝 生活号 获取 userId 和 生活号支付
    maven 项目使用本地jar
    nexus 私有 maven 仓库的搭建
    linux jdk 安装
    gitlab 可以上传代码,但是 不能 上传 tag 问题
    maven 内置变量
    mysql 不允许分组的问题 this is incompatible with sql_mode=only_full_group_by
  • 原文地址:https://www.cnblogs.com/wangck/p/4673009.html
Copyright © 2011-2022 走看看