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加快網站速度
使用CentOS作為伺服器主機,完整架設流程
Composer update 出現 proc_open(): fork failed - Cannot allocate memory
大多數網站會員註冊都依賴Email作為主要驗證機制,當驗證Email寄給使用者後,卻又直接進入垃圾信箱,經常被抱怨收不到信!
php顯示錯誤訊息Class 'ZipArchive' not found解決方式