發現更改主機的 hostname 的方式都改不太完整. 以下是試出來比較完整的方式:
su - root
127.0.0.1 tryboxap03 localhost.localdomain localhost
NETWORKING=yes HOSTNAME=tryboxap03 GATEWAY=61.67.71.126
hostname tryboxap03
[root@tryboxap2 etc]# hostname tryboxap03 [root@tryboxap2 etc]#
只要重新登入, 命令提示字串就會改成 [root@tryboxap03 etc]#
127.0.0.1 tryboxap03.ichiayi.com tryboxap03 localhost.localdomain localhost
tryboxap03.ichiayi.com
<html><a href=“https://www.everplast.com.tw/”>Everplast – Your Reliable Extruder Machine Partner We Design We Care</a></html>
<html><a href=“http://www.diamonds2cash.com/diamond-buyer/”>diamond buyers</a></html>