Skip to content

开机自启动 #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
feizhenzhuang opened this issue Mar 12, 2017 · 2 comments
Open

开机自启动 #36

feizhenzhuang opened this issue Mar 12, 2017 · 2 comments

Comments

@feizhenzhuang
Copy link

我最近重启vps后 ss-bash没有自动启动。需要ssh连上使用 ssadmin.sh start 这个命令才可以使用ss服务 请问这个该如何解决呢? 谢谢您的帮助

@Erich-Chen
Copy link

建议加入到/etc/rc.local中,实现(登陆前)开机自启动。
nano /etc/rc.local
在exit 0语句之前添加一行
/your/script/path/ssadmin.sh start

@Tsahao
Copy link

Tsahao commented Nov 29, 2017

创建/etc/rc.local文件
touch /etc/rc.local
赋可执行权限
chmod 755 /etc/rc.local
编辑rc.local,添加需要开机启动的任务(在 exit 0 之前添加你的ss-bash存放目录)

#!/bin/bash
sudo /root/ss-bash/ssadmin start
exit0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants