六号线晚报0710

天气:晴 风力:微风

systemctl 补充

  • Type=forking 命令启动后放到后台,默认启动后退出

  • 需要java环境的话应添加 Environment=JAVA_HOME=/usr/local/bin/jdk1.8.0_171

  • 修改xxx.service 后 执行systemctl daemon-reload重新载入

  • systemctl enable xxx加入开机启动,实际Created symlink from /etc/systemd/system/multi-user.target.wants/neo4j.service to /usr/lib/systemd/system/neo4j.service.
    复制了一个软连接到多用户启动服务下面

  • systemctl status xxx查看当前状态

  • systemctl start xxx 和systemctl start xxx.service一样

  • systemctl start xxx起来的最好使用systemctl stop xxx关,bin/stop可能会出问题,例如stop不会退出

修改可同时读文件数量

  1. Become root, since all operations that follow require editing protected system files.

user@localhost:~sudo su - Password: root@localhost:~

  1. Edit /etc/security/limits.conf and add these two lines:

neo4j soft nofile 40000
neo4j hard nofile 40000

  1. Edit /etc/pam.d/su and uncomment or add the following line:

session required pam_limits.so

  1. . A restart is required for the settings to take effect.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 天气:晴 风力:微风转自:https://www.cnblogs.com/moxiaoan/p/5683743.h...
    z0nk1n阅读 141评论 0 0
  • muahao阅读 2,097评论 0 3
  • systemd攻略 转自//www.greatytc.com/p/d5305104d03a或者这个http...
    x1596357阅读 2,937评论 0 3
  • systemd攻略 相关文档 arch 的 systemd 说明页面 (简体中文) fedora 的 system...
    muahao阅读 11,766评论 0 12
  • 天气:晴 风力:微风 转自:https://blog.csdn.net/qq_25821067/article/d...
    z0nk1n阅读 189评论 0 0