yum install -y tree net-tools bind-utils tree sysstat vim-en* lrzsz NetworkManager-tui ntp ntpdate iftop tcpdump telnet traceroute
cat /etc/redhat-release
cat /etc/hostname
systemctl is-enabled iptables.service
#查询服务是否开机启动systemctl enable iptables.service
#开机运行服务systemctl disable iptables.service
#取消开机运行systemctl start iptables.service
#启动服务systemctl stop iptables.service
#停止服务systemctl restart iptables.service
#重启服务systemctl reload iptables.service
#重新加载服务配置文件systemctl status iptables.service
#查询服务运行状态systemctl --failed
#显示启动失败的服务systemctl list-units --type=service
#查看所有服务systemctl is-enabled httpd
#查看httpd服务是否开机启动/etc/init.d/
(这个目录也是存在的),而是 /usr/lib/systemd/system/
firewall-cmd --zone=public --add-port=8883/tcp --permanent
firewall-cmd --zone=public --add-port=8883-8885/tcp --permanent
firewall-cmd --zone=public --remove-port=8883/tcp --permanent
firewall-cmd --reload
--zone
#作用域--add-port=80/tcp
#添加端口,格式为:端口/通讯协议--permanent
#永久生效,没有此参数重启后失效firewall-cmd --list-all
systemctl stop firewalld.service
#停止firewallsystemctl disable firewalld.service
#禁止firewall开机启动yum install -y iptables-services
systemctl restart iptables.service
#最后重启防火墙使配置生效systemctl enable iptables.service
#设置防火墙开机启动ip a
yum install -y net-tools
timedatectl set-timezone Asia/Shanghai
timedatectl status
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有