美文网首页
linux 基本环境

linux 基本环境

作者: 全栈无用 | 来源:发表于2021-05-17 10:15 被阅读0次

无法上网

# vi /etc/sysconfig/network-scripts/ifcfg-ens33
# DNBOOT=yes
# service network restart

yum 更新

yum update

安装网络工具

#  yum install net-tools
//查看 IP
# ifconfig -a

安装下载工具

yum -y install wget

防火墙端口工具

yum install iptables-services

开放端口

// 编辑
vi /etc/sysconfig/iptables
// 添加
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

// 发布
service iptables restart

相关文章

网友评论

      本文标题:linux 基本环境

      本文链接:https://www.haomeiwen.com/subject/qbyadltx.html