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
以CentOS為例Apache設定使用HTTP/2加快網站速度
當我們使用SSH連線時,該如何限制IP,設定允許連線的IP白名單呢,以Centos7為例。
RC4加密在密鑰的生成演算中存在漏洞在 Acunetix 弱點掃描中被列為中度風險,以Apache實作關閉RC4加密方式
CentOS 7 安裝後會自帶Python2,如果需要使用Python3則需要再另行安裝,安裝方式
對於 MySQL 資料庫資料操作的基本語法大全