在/etc/rc.local中添加命令,开机时以root权限运行 在~/.profile中添加命令,开机时以登陆用户权限运行 转载于:https://www.cnblogs.com/IMGavin/p/6341068.html