个人的修改位置
Ubuntu有非常多的方式让程序开机自启,这里记录一下我的位置。
vi /etc/rc.local
内容大概如下:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo swapon /dev/sda6
sudo /home/yexu/anaconda3/bin/sslocal -s 服务器 -p 端口 -k "密码" -d start
exit 0