切换到root用户在 vim /etc/rc.d/rc.local 最后一行添加 rmmod pcspkr 运行这个shell脚本文件 /etc/rc.d/rc.local 即可。或者直接重启(没必要)。