Centos系統實例安裝遠端桌面,以GCP服務為例示範
安裝tigervnc
# yum install tigervnc-server -y
複製設定檔
# cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service
設定新的設定檔
vi /etc/systemd/system/vncserver@:1.service
將檔案內改為root
設定密碼
# vncpasswd
啟動
# systmectl daemon-reload
# systemctl enable vncserver@:1.service
開防火牆
# firewall-cmd --permanent --add-port=5901/tcp
# firewall-cmd --reload
查詢目前可用的list
# vncserver -list
下載vncviewer
安裝完成後啟用程式
輸入ip:port
32.155.22.18:5901
如果是使用GCP服務,需要修改root密碼,避免遠端桌面沒有辦法登入
# passwd
當我們使用 migrate 出現以下訊息:Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
使用 Python3 出現 ModuleNotFoundError: No module named 'requests' 解決方式
Slow HTTP Denial of Service Attack 是以非常緩慢的速度進行http請求,霸佔伺服器服務,達到癱瘓伺服器的目的,解決方式即是設定 Timeout
以PHP實作Google reCAPTCHA驗證
Composer在更新時使用GitHub超過速率限制