Centos7 入门几个操作
http://www.wallcopper.com/linux/1650.html 创建文件软连接 ln -s 源路径 目标路径 查看软连接 ls -il 服务操作: systemctl start foo.service systemctl stop foo.service systemctl restart foo.service systemctl status foo.service 在开机时启用一个服务: systemctl enable foo.service 在开机时禁用一个服务: systemctl disable foo.service 列出服务的开机状态: systemctl list-unit-files 列出当前系统服务的状态 : systemctl list-units 查看指定服务的状态 : systemctl status foo iptables实例: cat > /etc/sysconfig/iptables < ! *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo