```bash nano /etc/hostname 舊名稱 -> 新名稱 nano /etc/hosts 10.0.0.205 新名稱.example.com 新名稱 pvelocalhost ``` ``` 備份VM/LXC 設定檔 ``` ```bash cp /etc/pve/qemu-server/*.conf /root/backup/qemu cp /etc/pve/lxc/*.conf /root/backup/lxc ``` ``` 重新開機之後移除舊的名稱資料夾: ``` ```bash rm -rf /etc/pve/nodes/舊名稱/ ``` ``` 完成之後把備份的設定檔倒回原位置即可正常使用,有簽發SSL的起重新簽發。 ``` ```bash acme.sh --issue --standalone --keypath /etc/pve/local/pveproxy-ssl.key --fullchainpath /etc/pve/local/pveproxy-ssl.pem --reloadcmd "systemctl restart pveproxy" -d pve.example.com --force ``` ```
```bash cp /etc/pve/qemu-server/*.conf /root/backup/qemu cp /etc/pve/lxc/*.conf /root/backup/lxc ``` ``` 重新開機之後移除舊的名稱資料夾: ``` ```bash rm -rf /etc/pve/nodes/舊名稱/ ``` ``` 完成之後把備份的設定檔倒回原位置即可正常使用,有簽發SSL的起重新簽發。 ``` ```bash acme.sh --issue --standalone --keypath /etc/pve/local/pveproxy-ssl.key --fullchainpath /etc/pve/local/pveproxy-ssl.pem --reloadcmd "systemctl restart pveproxy" -d pve.example.com --force ``` ```
```bash rm -rf /etc/pve/nodes/舊名稱/ ``` ``` 完成之後把備份的設定檔倒回原位置即可正常使用,有簽發SSL的起重新簽發。 ``` ```bash acme.sh --issue --standalone --keypath /etc/pve/local/pveproxy-ssl.key --fullchainpath /etc/pve/local/pveproxy-ssl.pem --reloadcmd "systemctl restart pveproxy" -d pve.example.com --force ``` ```
```bash acme.sh --issue --standalone --keypath /etc/pve/local/pveproxy-ssl.key --fullchainpath /etc/pve/local/pveproxy-ssl.pem --reloadcmd "systemctl restart pveproxy" -d pve.example.com --force ``` ```
6人線上 (6人在瀏覽線上書籍)
會員: 0
訪客: 6