Red Hat Enterprise 6 修改主机名
来源:互联网 发布:matlab单位矩阵 编辑:程序博客网 时间:2024/06/10 16:00
(1)通过命令临时修改主机名
hostname #查看当前主机的主机名
hostname NEWHOSTNAME #临时修改当前主机名
——重启后失效。
(2)通过命令修改主机名
hostname #查看当前主机的主机名
修改network文件
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=LING
(:wq 保存退出)
(3)修改hosts文件
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4//该行强烈建议保留
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6//该行强烈建议保留
#192.168.0.1 rhel.lpwr.NET rhel //必须有三个字段:IP、FQDN、HOSTNAME
127.0.0.1 LING.localhost LING
192.168.1.30 LING.localhost LING
(4)重启
# shutdown -r now
0 0
- Red Hat Enterprise 6 修改主机名
- Red Hat Enterprise 6 修改主机名
- Linux Red hat修改主机名
- Red Hat Enterprise linux 6中文输入法
- red hat enterprise linux 6 改为中文
- Red Hat Enterprise Linux 6 系统安装
- red hat enterprise linux
- linux下修改主机名(red hat 5.5)
- Red Hat Enterprise WS 3
- Red Hat Linux Enterprise 5.3
- Red Hat Enterprise Linux系统管理
- Red Hat Enterprise Linux系统管理
- Linux-Red Hat Enterprise 6.0
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 7.3
- Fedora 6 and Red Hat Enterprise Linux Bible
- Red Hat Enterprise Linux 5 系统中安装JDK1.6
- Red Hat enterprise linux 6卸载默认安装的 mysql
- MySQL 多实例安装
- windows实验一
- 平面上的地图搜索--Java学习笔记(四)
- Calendar 获取年月日
- 沉浸式状态栏(修改状态栏)颜色的简单实现
- Red Hat Enterprise 6 修改主机名
- 优化hibernate
- sdutacm-数据结构实验之链表一:顺序建立链表
- 二叉树结构
- Python正则表达式指南
- PowerDesigner(七)-面向对象模型(用例图,序列图,类图,生成Java源代码及Java源代码生成类图)
- ACM易错的地方之变量定义
- 绕开500D收费简历制作的关卡
- Map中字符串key的排序