【发布时间】:2017-06-01 06:53:44
【问题描述】:
我想确保 Web 服务在我的 AWS EC2 Linux 机器重新启动时自动启动。
要手动启动该过程,我需要输入以下命令:
sudo su
cd /root/notebooks
nohup jupyter notebook &
我按照下面的方法编辑了 /etc/rc.local,但是这个过程永远不会开始。有什么想法吗?
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
sudo su
cd /root/notebooks
nohup jupyter notebook &
touch /var/lock/subsys/local
【问题讨论】:
标签: linux amazon-web-services amazon-ec2 centos