凝思系统6.0.80系统常用服务启停 凝思操作
适用范围
linx-6.0.60
解决方案
1. ftp服务
端口:21
服务启停命令
启动:/etc/init.d/proftpd start或systemctl start proftpd.service
停止:/etc/init.d/proftpd stop 或systemctl stop proftpd.service
重启:/etc/init.d/proftpd restart或systemctl restart proftpd.service
查看状态:/etc/init.d/proftpd status或systemctl status proftpd.service
开机自启和关闭命令
开机自启:systemctl enable proftpd.service
开机不启动:systemctl disable proftpd.service
2. ssh服务
端口:22
服务启停命令
启动:/etc/init.d/ssh start或systemctl start ssh.service
停止:/etc/init.d/ssh stop 或systemctl stop ssh.service
重启:/etc/init.d/ssh restart或systemctl restart ssh.service
查看状态:/etc/init.d/ssh status或systemctl status ssh.service
开机自启和关闭命令
开机自启:systemctl enable ssh.service
开机不启动:systemctl disable ssh.service
3. networking网络服务
服务启停命令
启动:/etc/init.d/networking start或systemctl start networking.service
停止:/etc/init.d/networking stop 或systemctl stop networking.service
重启:/etc/init.d/networking restart或systemctl restart networking.service
查看状态:/etc/init.d/networking status或systemctl status networking.service
开机自启和关闭命令
开机自启:systemctl enable networking.service
开机不启动:systemctl disable networking.service
4. telnet服务
端口:23
服务启停
停止:sed -i "/^telnet/s/^/#/" /etc/inetd.conf
/etc/init.d/openbsd-inetd restart
开启:sed -i "/^#telnet/s/#//" /etc/inetd.conf
/etc/init.d/openbsd-inetd restart
5. dns服务
端口:53
服务启停
启动:/etc/init.d/bind9 start或systemctl start bind9.service
停止:/etc/init.d/bind9 stop 或systemctl stop bind9.service
重启:/etc/init.d/bind9 restart或systemctl restart bind9.service
查看状态:/etc/init.d/bind9 status或systemctl status bind9.service
开机自启和关闭命令
开机自启:systemctl enable bind9.service
开机不启动:systemctl disable bind9.service
6. apache服务
端口:80
服务启停
启动:/etc/init.d/apache2 start或systemctl start apache2.service
停止:/etc/init.d/apache2 stop 或systemctl stop apache2.service
重启:/etc/init.d/apache2 restart或systemctl restart apache2.service
查看状态:/etc/init.d/apache2 status或systemctl status apache2.service
开机自启和关闭命令
开机自启:systemctl enable apache2.service
开机不启动:systemctl disable apache2.service
7. tomcat服务
端口:8080
服务启停
启动:/etc/init.d/tomcat7 start或systemctl start tomcat7.service
停止:/etc/init.d/tomcat7 stop 或systemctl stop tomcat7.service
重启:/etc/init.d/tomcat7 restart或systemctl restart tomcat7.service
查看状态:/etc/init.d/tomcat7 status或systemctl status tomcat7.service
开机自启和关闭命令
开机自启:systemctl enable tomcat7.service
开机不启动:systemctl disable tomcat7.service
8. rpcbind服务
端口:111
服务启停
启动:/etc/init.d/rpcbind start或systemctl start rpcbind.service
停止:/etc/init.d/rpcbind stop 或systemctl stop rpcbind.service
重启:/etc/init.d/rpcbind restart或systemctl restart rpcbind.service
查看状态:/etc/init.d/rpcbind status或systemctl status rpcbind.service
开机自启和关闭命令
开机自启:systemctl enable rpcbind.service
开机不启动:systemctl disable rpcbind.service
9. ntp服务
端口:123
服务启停
启动:/etc/init.d/ntp start或systemctl start ntp.service
停止:/etc/init.d/ntp stop 或systemctl stop ntp.service
重启:/etc/init.d/ntp restart或systemctl restart ntp.service
查看状态:/etc/init.d/ntp status或systemctl status ntp.service
开机自启和关闭命令
开机自启:systemctl enable ntp.service
开机不启动:systemctl disable ntp.service
10. samba服务
端口:137、138、139、445
服务启停
启动:/etc/init.d/samba start或systemctl start samba.service
/etc/init.d/nmbd start或systemctl start nmbd.service
/etc/init.d/smbd start或systemctl start smbd.service
停止:/etc/init.d/samba stop 或systemctl stop samba.service
/etc/init.d/nmbd stop 或systemctl stop nmbd.service
/etc/init.d/smbd stop 或systemctl stop smbd.service
重启:/etc/init.d/ntp restart或systemctl restart ntp.service
/etc/init.d/nmbd restart或systemctl restart nmbd.service
/etc/init.d/smbd restart或systemctl restart smbd.service
查看状态:/etc/init.d/samba status或systemctl status samba.service
/etc/init.d/nmbd status或systemctl status nmbd.service
/etc/init.d/smbd status或systemctl status smbd.service
开机自启和关闭命令
开机自启:systemctl enable samba.service
systemctl enable nmbd.service
systemctl enable smbd.service
开机不启动:systemctl disable samba.service
systemctl disable nmbd.service
systemctl disable smbd.service
11. lightdm图形服务
服务启停
启动:/etc/init.d/lightdm start或systemctl start lightdm.service
停止:/etc/init.d/lightdm stop 或systemctl stop lightdm.service
重启:/etc/init.d/lightdm restart或systemctl restart lightdm.service
查看状态:/etc/init.d/lightdm status或systemctl status lightdm.service
12. cron计划任务
服务启停
启动:/etc/init.d/cron start或systemctl start cron.service
停止:/etc/init.d/cron stop 或systemctl stop cron.service
重启:/etc/init.d/cron restart或systemctl restart cron.service
查看状态:/etc/init.d/cron status或systemctl status cron.service
13. mysql服务
端口:3306
服务启停
启动:/etc/init.d/mysql start或systemctl start mysql.service
停止:/etc/init.d/mysql stop 或systemctl stop mysql.service
重启:/etc/init.d/mysql restart或systemctl restart mysql.service
查看状态:/etc/init.d/mysql status或systemctl status mysql.service
开机自启和关闭命令
开机自启:systemctl enable mysql.service
开机不启动:systemctl disable mysql.service
14. rsyslog日志服务
服务启停
启动:/etc/init.d/rsyslog start或systemctl start rsyslog.service
停止:/etc/init.d/rsyslog stop 或systemctl stop rsyslog.service
重启:/etc/init.d/rsyslog restart或systemctl restart rsyslog.service
查看状态:/etc/init.d/rsyslog status或systemctl status rsyslog.service
15. mcelog日志服务
服务启停
启动:/etc/init.d/mcelog start或systemctl start mcelog.service
停止:/etc/init.d/mcelog stop 或systemctl stop mcelog.service
重启:/etc/init.d/mcelog restart或systemctl restart mcelog.service
查看状态:/etc/init.d/mcelog status或systemctl status mcelog.service
16. cups打印机服务
端口:631
服务启停
启动:/etc/init.d/cups start或systemctl start cups.service
停止:/etc/init.d/cups stop 或systemctl stop cups.service
重启:/etc/init.d/cups restart或systemctl restart cups.service
查看状态:/etc/init.d/cups status或systemctl status cups.service
开机自启和关闭命令
开机自启:systemctl enable cups.service
开机不启动:systemctl disable cups.service
17. nfs服务
端口:2049
服务启停
启动:/etc/init.d/nfs-common start或systemctl start nfs-common.service
/etc/init.d/nfs-kernel-server start或systemctl start nfs-kernel-server.service
停止:/etc/init.d/nfs-common stop 或systemctl stop nfs-common.service
/etc/init.d/nfs-kernel-server stop 或systemctl stop nfs-kernel-server.service
重启:/etc/init.d/nfs-common restart或systemctl restart nfs-common.service
/etc/init.d/nfs-kernel-server restart或systemctl restart nfs-kernel-server.service
查看状态:/etc/init.d/nfs-common status或systemctl status nfs-common.service
/etc/init.d/nfs-kernel-server status或systemctl status nfs-kernel-server.service
开机自启和关闭命令
开机自启:systemctl enable nfs-common.service
systemctl enable nfs-kernel-server.service
开机不启动:systemctl disable nfs-common.service
systemctl disable nfs-kernel-server.service
18. lwresd服务
端口:921
服务启停
启动:/etc/init.d/lwresd start或systemctl start lwresd.service
停止:/etc/init.d/lwresd stop 或systemctl stop lwresd.service
重启:/etc/init.d/lwresd restart或systemctl restart lwresd.service
查看状态:/etc/init.d/lwresd status或systemctl status lwresd.service
开机自启和关闭命令
开机自启:systemctl enable lwresd.service
开机不启动:systemctl disable lwresd.service
19. postfix服务
服务启停
启动:/etc/init.d/postfix start或systemctl start postfix.service
停止:/etc/init.d/postfix stop 或systemctl stop postfix.service
重启:/etc/init.d/postfix restart或systemctl restart postfix.service
查看状态:/etc/init.d/postfix status或systemctl status postfix.service
开机自启和关闭命令
开机自启:systemctl enable postfix.service
开机不启动:systemctl disable postfix.service
20. avahi-daemon服务
服务启停
启动:/etc/init.d/avahi-daemon start或systemctl start avahi-daemon.service
停止:/etc/init.d/avahi-daemon stop 或systemctl stop avahi-daemon.service
重启:/etc/init.d/avahi-daemon restart或systemctl restart avahi-daemon.service
查看状态:/etc/init.d/avahi-daemon status或systemctl status avahi-daemon.service
开机自启和关闭命令
开机自启:systemctl enable avahi-daemon.service
开机不启动:systemctl disable avahi-daemon.service