知識庫 : VPS 主機相關

 

一般在 CentOS 6 安裝桌面環境時,步驟如下:

yum -y groupinstall "General Purpose Desktop" "X Window System" "Desktop"

在我們的 VPS 若安裝時已選擇含 "Gnome Desktop" 的作業系統,則上述 group 已經安裝好了 ,我們只需要安裝中文支援即可:

yum -y groupinstall "chinese support"

接下來編輯此檔案:

vi /etc/sysconfig/i18n

LANG="en_US.UTF-8" 改為 LANG="zh_TW.UTF-8"

若此檔案不存在則直接加上 LANG="zh_TW.UTF-8" 內容後存檔離開

接下來重開機使設定生效:

shutdown -r now

最後設定 VNC,直接輸入(未安裝 VNC Server 可用此指令安裝:yum install tigervnc-server ):

vncserver

開機啟用 VNC:

/sbin/chkconfig vncserver on

系統會請您設定 VNC 密碼:

[[email protected] ~]# vncserver


 You will require a password to access your desktops.

 Password:********
 Verify:********
 xauth: creating new authority file /root/.Xauthority

 New 'demo.server.com:1 (root)' desktop is demo.server.com:1

 Creating default startup script /root/.vnc/xstartup
 Starting applications specified in /root/.vnc/xstartup
 Log file is /root/.vnc/x03.server.com:1.log

 [[email protected] ~]#
 

接下來您可以用 VNC Viewer 來連線了 ( 下載 UltraVNC,請點此進入 官網 )

假設您的 IP 是 10.10.10.10 ,則請輸入 10.10.10.10:1,如下圖:

遠振資訊

cPanel套件介紹:

cPanel是一套自動部屬 網頁(Apache/Nginx)、資料庫(MySQL/MariaDB)、郵件(Exim/Dovecot)、FTP(Proftpd/Pureftpd)、DNS(PowerDNS) 服務的套件,方便使用者快速建置所需服務,省去傳統LAMP複雜安裝流程,以及提供WHM管理網頁介面,可透過網頁操作調整相關服務設定。


cPanel套件原廠安裝說明(英文):

https://docs.cpanel.net/installation-guide/install/

https://docs.cpanel.net/knowledge-base/security/additional-security-software/#configserver-software


cPanel套件安裝系統要求:

支援 AlmalinuxOS 8、CloudlinuxOS 8、Rocky Linux 8、Ubuntu 20.04 LTS (建議使用 AlmalinuxOS 8 or CloudlinuxOS 8)


cPanel套件支援PHP/SQL版本系統要求:

CentOS7

支援 PHP 5.6 ~ 8.1 版本、支援 MySQL 5.7,8.0 MariaDB 10.3,10.6 版本 (不建議使用,僅支援至cPanel v110版本,技術支持至 2024/6/30)

Almalinux 8

支援 PHP 7.2 ~ 8.2 版本、支援 MySQL 8.0 MariaDB 10.6 版本 (建議使用,技術支持至 2029/5/31)

Ubuntu 20.04 LTS

支援 PHP 7.3 ~ 8.2 版本、支援 MySQL 8.0 版本


cPanel套件安裝前注意事項:

01. 確認IP是否加上 cPanel License 授權 https://verify.cpanel.net/app/verify
02. 主機hostname需設定符合 FQDN 規範之名稱,例如: vps.yuanjhen.com or cloud.yuanjhen.com
03. 硬碟空間是否大於40GB (官方建議)
04. 禁用SELinux
05. 安裝perl套件
06. 關閉NetworkManager.service


cPanel套件安裝指令:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest

cPanel套件安裝完成,可透過以下網頁介面登入(請更改IP位址為正確資訊):

https://IP位址:2087 (WHM 管理者網頁介面,帳號為 root)

https://IP位址:2083 (cPanel 帳號網頁介面,需先建立帳號才能登入使用)

https://IP位址:2096 (cPanel Webmail網頁介面,需先建立帳號才能登入使用)


cPanel軟體防火牆 CSF(建議安裝):

cd /root
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
./install.cpanel.sh

( 安裝完成可於 WHM 管理者網頁介面內 ConfigServer Security & Firewall 功能查看與調整相關設定 )


WHM cPanel管理網頁介面重要功能介紹:

Basic WebHost Manager® Setup (設定Shared IPv4、Nameservers)
Contact Manager (cPanel系統通知設定)
EasyApache 4 (新增/更新/移除 Apache、PHP套件)
Tweak Setting (cPanel系統相關服務設定)
Apache Configuration (網頁伺服器相關設定)
Edit SQL Configuration (資料庫伺服器相關設定)
FTP Server Configuration (FTP伺服器相關設定)
Mailserver Configuration (郵件伺服器相關設定)
Backup Configuration (備份設定)

List Accounts (帳號列表)
Reseller Center (經銷帳號管理介面)

Apache Status (網頁伺服器狀態)
Show MySQL® Processes (資料庫伺服器狀態)
Service Status (全部主機服務狀態)

Create a New Account (建立cPanel帳號)
Terminate Accounts (移除cPanel帳號)

DNS Zone Manager (DNS設定管理)
Manage SSL Hosts (管理SSL憑證)

Step1. When completing of order for the hosting plan, you will receive the hosting activation from our system, as shown in the image below. Please log in to https://vps.twnoc.net to select the control console.

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Step2. You can see the following information once logged in. Please click Manage (as seen in the image below).

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Step3. Then choose VNC

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Step4. Continue to choose "HTML5 VNC Client SSL" as the image below to operate.

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Step5. You will see the following screen; please click the next step according to the following image and set the initial password to enable it.

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Step6. The basic settings related to the VPS hosting have been completed, the account is administrator, and the password is the password you set earlier. Please navigate to "Remote Desktop" on your desktop, open the program and click Connect to use Windows Remote Desktop to connect to the VPS hosting you ordered.

How to connect Windows Server via RDP & Initial Configuration Guide | Yuan-Jhen

Note: The language of the Window system depends on what version you install.
Or you can change the language from step 5.

>> Learn more VPS Hosting solutions

When users install the Windows operating system, the system does not enable remote desktops by default. VNC Console is required for the first login to the Windows system.

Please see this link for the configuration tutorial: https://twnoc.net/support/Knowledgebase/Article/View/216/14

VPS console of VNC Console, this Console can enable the latest HTML5.

Link to the VPS console: https://vps.twnoc.net

Control Your Computer Remotely Using HTML5 With VNC Console.

Step1. The login screen is shown below; please log in by entering your username and password.

Log in to the VPS console the VPS console | Yuan-Jhen

Step2. If you have more than 1 VPS Hosting, please click Manage on the right side of your VM needs to manage.

VPS console of VNC Console, this Console can enable the latest HTML5 | Yuan-Jhen

Step3. Once login, click VNC as the following image:

HTML5 VNC SSL - VPS hosting console | Yuan-Jhen

Step4. Choose HTML5 VNC Client SSL then choose HTML5 VNC SSL in the order of images below:

HTML5 VNC SSL - VPS hosting console | Yuan-Jhen

Remote screen sharing session with VNC Connect | Yuan-Jhen

Step5. Pop up the screen as you see in the image below. It means that you have successfully opened the webpage VNC to access your VM.

How to use VNC to Control a Computer with VNC Console | Yuan-Jhen

>> Learn more VPS Hosting solutions

需要先確認一下是否有安裝 JAVA,可以直接到 Java.com 下載安裝新版。

 

本文適用於 Java Version 8 update 25 版本或以下

JAVA 預設都是調整為高度安全,本文將逐步告訴您,如何設定 Java 安全性。

VPS 要執行 VNC Console,或是在執行一些 JAVA 應用程式的時候,會顯示下面這種視窗 - 「應用程式已被安全設定值封鎖」的視窗。

 

 

一、開啟控制台,檢視方式:大圖示,找到 Java 圖示,點選進去 Java 控制台設定。

 

 

 

二、設定 JAVA 控制台

開啟 Java 控制台,點選「安全」選項,在「例外網站清單」中,加入允許啟動應用程式的網站清單。

https://central.idc-service.net:5656

 

 

三、清除 Web 瀏覽器快取會強制瀏覽器載入您所造訪的網頁和程式的最新版本。

Internet Explorer

刪除 Internet Explorer (IE) 中網頁快取的方式依據您的 IE 和 Windows 版本會有所不同。

您可以在 IE 的「工具」底下 (「網際網路選項」或「安全性」),接著到「瀏覽歷程記錄」,找到移除已快取網頁的選項。

Firefox
  1. 從 Firefox 功能表列,按一下「工具」
  2. 按一下「選項」
  3. 在「進階」選項底下按一下「網路」標籤
  4. 在「已快取的網頁內容」底下清除快取
Chrome
  1. 按一下瀏覽器工具列中的「自訂」圖示
  2. 選取「設定」,然後選取「顯示進階設定」
  3. 在「隱私權」底下選取「清除瀏覽資料」
  4. 在出現的對話方塊中,針對您要移除的資訊類型選取核取方塊。使用位於頂端的功能表來選擇您要刪除的資料量。選取「不限時間」以刪除所有資料。
  5. 按一下「清除瀏覽資料」

 

 ↑ 清除瀏覽器教學參考至 Java.com 官網

 

四、確認 Web 瀏覽器啟用 Java:

Windows 專用瀏覽器

Internet Explorer
  1. 依序按一下工具網際網路選項
  2. 選取安全性標籤,然後選取自訂等級按鈕
  3. 向下捲動至 Java applets 的指令碼化
  4. 確定勾選了啟用單選按鈕
  5. 按一下確定以儲存您的個人喜好
Chrome
  1. 在搜尋欄位輸入 about:plugins
  2. 在外掛程式清單中,尋找 Java 並確認是否已啟用 Java (若顯示「停用」連結,則表示 Java 已啟用)
  3. 按一下啟用連結 (如果有的話)
  4. (選擇性) 勾選一律允許方塊,即可在執行 Java 內容時停止其他 Chrome 警告。

在 Chrome 版本 42 及更新版本啟用 NPAPI

在 Chrome 版本 42 中,需要額外的組態步驟以繼續使用 NPAPI 外掛程式。

  1. 在您的 URL 列輸入:
    chrome://flags/#enable-npapi 
  2. 按一下啟用 NPAPI 組態選項的啟用連結
  3. 按一下組態頁面底端出現的立即重新啟動按鈕。

適用於 Windows 和 Mac OS X 的瀏覽器

Firefox
  1. 開啟 Firefox 瀏覽器,或如果已在執行中,請重新啟動
  2. 從 Firefox 選單中選取工具,然後按一下附加元件選項
  3. 在「附加元件管理員」視窗中,選取外掛程式
  4. 按一下 Java (TM) Platform 外掛程式 (Windows) 或 Java Applet Plug-in (Mac OS X) 進行選取
  5. 確定選取的選項為啟用時詢問總是啟用,如果是較舊的 Firefox 版本,請按一下啟用按鈕 (如果按鈕顯示停用,代表 Java 已經啟用)
Safari
  1. 按一下 Safari 並選取偏好設定
  2. 選擇安全性選項
  3. 選取啟用外掛模組,然後按一下管理網站設定值
  4. 按一下 Java 項目,選取造訪其他網站時下拉式清單中的選項 (詢問、允許或一律允許)
  5. 按一下完成,關閉 Safari 偏好設定視窗
Opera 4.x 及更新版本
  1. 適用於 Windows 的 Opera 並不使用 Java,但是 Opera Web 瀏覽器的內部已安裝了內嵌式版本。
  2. 適用於其他平台的 Opera 可能 支援 Java。請參閱您的 Opera 平台說明文件。
  3. 如需進一步資訊,請參閱以下 Opera 支援文章: 
    在 Opera 中支援 Java 軟體

 ↑ 確認 Web 瀏覽器啟用教學參考至 Java.com 官網

 

五、重新開啟 VPS 控制台,並啟動 VNC Console。

遠振資訊 VPS 主機方案

若用戶是安裝 Windows 的系統,由於 Windows 系統預設沒有啟用「遠端桌面」,所以第一次登入 Windows 系統必須使用 VNC Console。

您可以參考此篇教學進行設定:  https://twnoc.net/support/Knowledgebase/Article/View/216/14

VNC Console 在 VPS 主控台中,此 Console 可以採用最新Html5 開啟

VPS 主控台網址:https://vps.twnoc.net

 

1. 下圖是主控台登入畫面,請先輸入帳密進行登入


2. 若您有多台VPS主機,請點選您要管理的VM點選紅框的  管理

3. 登入後,點擊下圖中紅色框框的「VNC」按鈕。

 

4. 依照順序點擊下列紅框處




5. 您將會看到此視窗,代表您已順利開啟網頁VNC訪問您的VM





>> 了解更多 VPS主機 方案規格

1. 登入VPS控制台,網址為: https://vps.twnoc.net

2. 登入後點選紅框處 Manage 進入該VM進行控制

3. 點選圖片中的紅框處 > 網路 Network > 編輯 Edit


4. 點選編輯後會出現一個新視窗,請於框線內輸入你要設定該網域的反解

(此網域需先設定好A記錄才可進行生效)

 

5. 更新完畢後您將會看到於類似下圖的欄位,在反解內會呈現您剛輸入的反解網域名稱


6. 設定完畢後,可使用相關指令進行查詢反解紀錄是否生效 如: dig -x xxx.xxx.xxx.xxx




>> 了解更多 VPS主機 方案規格

Windows 2008/2012/2016/2022 以上作業系統全數支援。

Linux 作業系統支援列表如下:

Linux-CentOS-6-x86_64-Minimal
Linux-CentOS-7-x86_64-Minimal
Linux-CentOS-8-x86_64-Minimal

Linux-Fedora-17-x86_64-Minimal
Linux-Fedora-18-x86_64-Minimal
Linux-Fedora-20-x86_64-Minimal
Linux-Fedora-23-x86_64-Minimal

Linux-Ubuntu-12-TLS-Server-x86_64-Minimal
Linux-Ubuntu-13-TLS-Server-x86_64-Minimal
Linux-Ubuntu-14-TLS-Server-x86_64-Minimal
Linux-Ubuntu-16-TLS-Server-x86_64-Minimal
Linux-Ubuntu-18-TLS-Server-x86_64-Minimal
Linux-Ubuntu-20-TLS-Server-x86_64-Minimal
Linux-Ubuntu-22-TLS-Server-x86_64-Minimal

Linux-Debian-6-x86_64-Minimal
Linux-Debian-7-x86_64-Minimal
Linux-Debian-8-x86_64-Minimal
Linux-Debian-9-x86_64-Minimal
Linux-Debian-10-x86_64-Minimal
Linux-Debian-11-x86_64-Minimal

Linux-Almalinux-8-x86_64-Minimal


### 於 2023-2-6 更新列表 ###


(本司作業系統定期更新,若未在下列請來信詢問,點此寄信)

>> 了解更多 VPS主機 方案規格

1. 訂購完成後您將會收到我們系統寄送給您的開通信件,信件如下並點選 VPS 控制台:https://vps.twnoc.net  做登入。



2. 登入後您將會看到以下畫面並點選紅框箭頭處



3. 再來請繼續點選紅框處



4. 繼續點選圖片操作



5. 您將會看到下列畫面,請依照下列圖示點選下一步以及設定初始密碼及啟用。











6. 以上完成了VPS主機相關基礎設定,帳號為administrator,密碼為您稍早所設定的密碼。 請於您的桌機搜尋"遠端桌面",開啟程式後點選連線即可以使用 Windows 遠端桌面連接您所訂購的VPS主機。




>> 了解更多 VPS主機 方案規格
遠振資訊有限公司 • 統一編號:28132571
服務專線:4499-343 (手機撥打請加 02)• 地址:235601 新北市中和區中正路866之7號12樓
[ 雲端主機 ] • [ 虛擬主機 ] • [ 實體主機 ] • [ SSL 憑證 ] • [ 網域申請 ] • [ cPanel 教學 ] • [ WHM 教學 ]
本公司由 宇恒法律事務所 擔任常年法律顧問 • Copyright 2013-2023 All Rights Reserved