代码改变世界

随笔分类 -  centos

centos7 端口转发
摘要:firewall-cmd --add-masquerade firewall-cmd --add-forward-port=port=3001:proto=tcp:toaddr=172.17.183.199:toport=22 --permanent firewall-cmd --add-masqu 阅读全文

posted @ 2018-11-16 10:34 Captain林 阅读(1202) 评论(0) 推荐(0)

centos7 修改静态ip 和dns
摘要:1、修改对应网卡的IP地址的配置文件# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为 阅读全文

posted @ 2017-06-28 14:29 Captain林 阅读(414) 评论(0) 推荐(0)

导航