- 论坛徽章:
- 0
|
If a network card is not going to be configured, create the /etc/hosts file by running:
cat > /etc/hosts << "EOF"
# Begin /etc/hosts (no network card version)
127.0.0.1 www.mydomain.com <value of HOSTNAME> localhost
# End /etc/hosts (no network card version)
EOF
If a network card is to be configured, create the /etc/hosts file by running:
cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)
127.0.0.1 localhost.localdomain localhost
192.168.1.1 www.mydomain.org <value of HOSTNAME>
# End /etc/hosts (network card version)
EOF
我使用的是宽带路由器,ip是自动分配的,域名不知道该怎么写?请兄弟们指点下。 |
|