
雖然說虛擬主機內建的cPanel管理很方便,但礙於虛擬主機所有資源都是共享的,所以當遇到有不好的房客時,就會影像到網站的速度,因此當要比較好的效能時,梅干就會租用VPS主機,但有用過的朋友都知道,由於VPS只有作業系統,要什麼就得自己用SSH登入,並以指令的方式進安裝與管理,因此最近有好友與梅干分享了HestiaCP的管理器,經梅干實用後只覺得相見恨晚,HestiaCP不但全視覺化介面,甚至內建也有許多的架站模組,最棒的是也支援自動安裝SSL安全憑證,就像迷你版的cPanel,更重要是HestiaCP還完全免費,因此使用VPS主機又不愛用指令管理主機的朋友,現在也一塊來看看如何在VPS安裝HestiaCP管理器吧!
Step1
首先,先以SSH登入後,以序的輸入以下的指令,將HestiaCP安裝起來,當安裝完畢後,再輸入reboot重啟。
** SSH登入主機 **
ssh -i ~/.ssh/id_rsa 帳號@IP
** 1. 切換權限 **
sudo su –
** 2. 下載並安裝hst **
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
** 3. 將Email、Password、hostname 修改為自己所需 **
bash hst-install.sh –interactive no –email admin@example.com –password exampledemopassword –hostname domainname.example.com -f ** 重啟主機 **
reboot
ssh -i ~/.ssh/id_rsa 帳號@IP
** 1. 切換權限 **
sudo su –
** 2. 下載並安裝hst **
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
** 3. 將Email、Password、hostname 修改為自己所需 **
bash hst-install.sh –interactive no –email admin@example.com –password exampledemopassword –hostname domainname.example.com -f ** 重啟主機 **
reboot

Step2
接著到防火牆的地方,將8083,80,443,143,993,110,995,25,465,587這些埠號設為開啟。

Step3
這時網址:8083,就可登入Hestia的管理後台,這時再輸入帳號(admin)與密碼(就是步驟1所設定的),如果要修改預設的埠號,可輸入下方的指令修改。
sudo su –
** 5500可自行修改 **
v-change-sys-port 5500
v-change-sys-port 5500

Step4
在登入後,點上方的Add User建立一個使用者。

Step5
在建立後,點一下剛所建立好的使用者。

Step6
在切換為剛所所需建立的帳號後,再點Add Web Domain,建立網站的網域名稱 (當進入帳號底下,才會看到DB選項,但在管理員下,會看不到DB選項)。

Step7
在建立完畢後,記得到DNS地方,將域名與IP對應後,再點剛所建立好域名後方的筆型圖示。

Step8
進入後,將下方的SSL選項勾起來。

Step9
過一回在安裝完畢後,就會看到SSL下方出現綠色勾勾。

Step10
接著點一下域名,進入後,再點右上的Quick Install App鈕。

Step11
再點一下WordPress下方的Setup。

Step12
接著再輸入WordPress的帳密、網站名稱、管理者信箱。

Step13
當上方出現綠色文字,表示已安裝完成。

Step14
這時再回到網站底下,點下方的Advanced Options。

Step15
將FTP勾選起來,再輸入FTP的帳號、密碼。

Step16
在建立好後,就可以FTP方式進行登入主機並上傳檔案。

Step17
這時再開啟瀏覽器,瀏覽一下剛所建立好的網站,是不是超方便的呀!只需要把HestiaCP安裝好後,就可快速的一鍵搞定FTP、SSL、WordPress..是不是超方便的呀!即便是VPS也能輕鬆管理你的VPS主機
