Centos7常见任务及端口:修订间差异

来自牛奶河Wiki
跳到导航 跳到搜索
(创建页面,内容为“=== 111 - rpcbind === * systemctl stop rpcbind.socket * systemctl stop rpcbind ''Warning: Stopping rpcbind.service, but it can still be activated by: rpcbind.socket'' * systemctl disable rpcbind.socket * systemctl disable rpcbind ''Removed symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket. Removed symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service.'' === 25 - postfix === * systemctl stop postfix * systemctl disable postfix…”)
 
无编辑摘要
第1行: 第1行:
systemctl stop|disable serviceName
=== 111 - rpcbind ===
=== 111 - rpcbind ===
 
systemctl stop rpcbind.socket
* systemctl stop rpcbind.socket
systemctl stop rpcbind
* systemctl stop rpcbind
# Warning: Stopping rpcbind.service, but it can still be activated by: rpcbind.socket
 
''Warning: Stopping rpcbind.service, but it can still be activated by: rpcbind.socket''
 
* systemctl disable rpcbind.socket
* systemctl disable rpcbind
 
''Removed symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket. Removed symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service.''
 
=== 25 - postfix ===
=== 25 - postfix ===
 
systemctl stop postfix
* systemctl stop postfix
* systemctl disable postfix
 
=== 53 - dnsmasq ===
=== 53 - dnsmasq ===
 
systemctl stop dnsmasq
* systemctl stop dnsmasq
# ubuntu
* systemctl disable dnsmasq
systemctl stop systemd-resolved
* # ubuntu
* systemctl stop systemd-resolved
* systemctl disable systemd-resolved
 
=== xwindows ===
=== xwindows ===
init 3
init 3
 
=== ES ===
=== ES ===
9200
9200


=== oray ===
=== oray ===
<nowiki>#</nowiki> 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
# 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


=== 停止disable dnsmasq ===
=== 停止disable dnsmasq ===
killall dnsmasq
killall dnsmasq
----SN=cups ./rrun ip_139 “systemctl disable ${SN};systemctl stop ${SN}”
SN=cups
./rrun ip_139 “systemctl disable ${SN};systemctl stop ${SN}”
 


<nowiki>##</nowiki> Other rpcbind.socket rpcbind 111 cupsd 631 postfix 25 dnsmasq 53
<nowiki>##</nowiki> Other rpcbind.socket rpcbind 111 cupsd 631 postfix 25 dnsmasq 53

2024年4月28日 (日) 17:07的版本

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

停止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