Centos7常见任务及端口
systemctl stop|disable serviceName
111 - rpcbind
systemctl stop rpcbind.socket systemctl stop rpcbind # Warning: Stopping rpcbind.service, but it can still be activated by: rpcbind.socket
25 - postfix
systemctl stop postfix
53 - dnsmasq
systemctl stop dnsmasq # ubuntu systemctl stop systemd-resolved
xwindows
init 3
ES
9200
oray
# phddns, phdaemon # 16062 /usr/sbin/oraysl -a 127.0.0.1 -p 16062 -s phsle02.oray.net:6061 -l /var/log/phddns -L oraysl -f /etc -S /etc/oray/phddns -t /bin/bash /usr/sbin/phdaemon
other
# 停止disable dnsmasq killall dnsmasq SN=cups ./rrun ip_139 “systemctl disable ${SN};systemctl stop ${SN}”
## Other rpcbind.socket rpcbind 111 cupsd 631 postfix 25 dnsmasq 53
# port:631 - cupsd # systemctl disable cups # systemctl stop cups Warning: Stopping cups.service, but it can still be activated by:
cups.socket cups.path
# port:25 smtp # service postfix stop
chkconfig -s cups off # 或者直接删除开机服务 chkconfig –del cups
smtp:/etc/init.d/postfix stop rpc:/etc/init.d/portmap stop svrloc:/etc/init.d/slpd stop ipp:/etc/init.d/cupsd stop
chkconfig |grep on cron 0ff 1ff 2n 3n 4ff 5n 6ff cups 0ff 1ff 2n 3:on 4:off 5:on 6:off nfs 0:off 1:off 2:off 3:on 4:off 5:on 6:off nfsboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off novell-zmd 0:off 1:off 2:off 3:on 4:on 5:on 6:off nscd 0:off 1:off 2:off 3:on 4:off 5:on 6:off portmap 0:off 1:off 2:off 3:on 4:off 5:on 6:off postfix 0:off 1:off 2:off 3:on 4:off 5:on 6:off powersaved 0:off 1:off 2:on 3:on 4:off 5:on 6:off random 0:off 1:off 2:on 3:on 4:off 5:on 6:off resmgr 0:off 1:off 2:on 3:on 4:off 5:on 6:off slpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off