# 憑證更新 ## 簡介 lab目前的憑證是透過免費軟體letsencrypt建立ssh連線憑證,需每三個月更新一次。 Lab目前是以140.117.74.98這個IP位置去申請datasci.mis.nsysu.edu.tw這個domain的憑證。 > 主要透過.100更新憑證,只需一台電腦更新憑證,其他台電腦在複製更新好的憑證使用。 ## 執行步驟 1. 取得憑證 > (此次做法是因為.6憑證以更新,故從.6複製憑證使用) > ``` [root@hdatanode6 ~]# scp -r /etc/letsencrypt/ hadoop@192.168.1.8:~ ``` 2. 關閉apache ``` [root@hdatanode8 ~]# systemctl stop httpd ``` 3. 在.8刪除舊有憑證,將新憑證存放於/etc資料夾底下 ``` [root@hdatanode8 ~]# rm -r /etc/letsencrypt [root@hdatanode8 ~]# mv /home/hadoop/letsencrypt/ /etc ``` 3. 重啟apache ``` [root@hdatanode8 ~]# systemctl restart httpd ``` 4. 重啟jupyterhub ``` [root@hdatanode8 ~]# systemctl restart jupyterhub ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up