天天看点

linux 修改主机名

rhel系统

修改

1./etc/sysconfig/network | HOSTNAME=

2./etc/hosts | 127.0.0.1   localhost  localhost4 localhost4.localdomain4

              ::1         localhost  localhost6 localhost6.localdomain6

debian系统

1./etc/hostname |

2./etc/hosts | 127.0.0.1      FTP-server

继续阅读