nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 154 forks source link

可以使用nohup吗 #152

Open zaijianbch opened 6 years ago

zaijianbch commented 6 years ago

我发现我直接使用./neb -c conf/default/config.conf然后ctrl+c之后,本地节点是直接后台执行的。 现在我想连入星云主网,那是否可以直接使用 nohup ./neb -c mainnet/conf/config.conf > /dev/null 2>&1 & 命令来直接后台执行?还是说直接 ./neb -c mainet/conf/config.conf 然后crtl+c退出就自动后台执行了?

ChengOrangeJu commented 6 years ago

@zaijianbch 您好,在mac上ctrl+c后会停止运行。在linux系统上有时候并不能停止,但这并不是在预期之内的行为,很可能在未来某时间进行调整,谢谢:)

zaijianbch commented 6 years ago

@ChengOrangeJu 那请问后台执行的话,就必须使用nohup对吗?

flute commented 6 years ago

@zaijianbch @ChengOrangeJu 兄台,主网在linux下后台运行有没有心得分享下🌚

1、关于如何稳定在后台运行(nohup command & 隔段时间会掉) 2、cpu占用率问题,如何控制neb的cpu使用率(目前启动后基本一直是90%,cpulimit貌似无效)

zaijianbch commented 6 years ago

@flute 你还是90%,不错了,我直接就是100%,只在自己的虚拟机上测试了一下本地网络,没连测试网,稳定运行没啥问题啊,nohup conmmand > /dev/null 2>&1 & 是OK的,我跑了一天,然后我自己kill掉的。

weiht12 commented 5 years ago

你好,此版本为星云旧版wiki(后期逐步停止维护),欢迎将您的问题提交星云新版wiki,以便于获得及时解答。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)