sed -n '/\bstart)/a \\t#check that portmap or rpcbind is up \n\t/etc/init.d/portmap status \n\t[ $? -ne 0 ] && /etc/init.d/portmap start' /etc/init.d/nfssed 用 \b 标示边界grep -w
# 指定端口sed -i '/PORT/s/^#//' /etc/sysconfig/nfs# 添加防火墙iptables -I INPUT -s 10.0.10.0/24 -p tcp --dport 875 -j ACCEPTiptables -I INPUT -s 10.0.10.0/24 -p udp --dport 875 -j ACCEPTiptables -I INPUT -s 10
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号