sudo apt-get install numlockx sudo vim /etc/rc.local 把下面的内容添加到最后那行的前面 代码: if [ -x /usr/bin/numlockx ]; then numlockx on fi