修改/root/.profile文件,如下命令 sudo gedit /root/profile 将文中的最后一行mesg n修改成tty -s && mesg n 转载于:https://www.cnblogs.com/it-tsz/p/8648324.html