码迷,mamicode.com
首页 > 系统相关 > 详细

linux命令

时间:2018-12-03 19:56:12      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:主机名   ifcfg-eth   ubuntu   关系   script   ble   linux命令   work   注意   

1.修改linux ip
     手动修改
     也可以命令修改
     vim /etc/sysconfig/network-scripts/ifcfg-eth0
     
2.修改主机名(注意ubuntu版本方式)
     vim /etc/sysconfig/network 
     将之前的名字更改为itcast01
 
3.修改主机名与 ip 对应关系
     vim  /etc/hosts
     192.168.8.88      itcast01
 
4.关闭防火墙
     查看防护墙状态
     service iptables status
     
     关闭
     service iptables stop     
 
     查看防火墙开机启动状态
     chkconfig iptables --list
 
     关闭开机启动
     chkconfig iptables off
     

linux命令

标签:主机名   ifcfg-eth   ubuntu   关系   script   ble   linux命令   work   注意   

原文地址:https://www.cnblogs.com/Leechg/p/10059880.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!