netstat -atln view port
/ Sbin / chkconfig --list to view the automatic startup items
/ Sbin / chkconfig --add add the service to start automatically
/ Sbin / chkconfig --del remove the service from starting automatically
Reproduced in: https: //www.cnblogs.com/moonbear/archive/2012/12/19/2825698.html