diff --git a/README.md b/README.md index eeb1394..a0b3556 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,27 @@ $ sudo ls -la /root # 測試 rulingcom sudo 是否可用 $ exit; exit # 第一次 exit 退回 root 帳號,第二次 exit 退回剛登入的帳號 ``` -## 下載裝機script並執行(除了網站的部分需手動,其餘皆已改為自動,其他內容不用再執行) +## 下載裝機script並執行(除了需執行下一步驟的移機外,其他內容不用再執行) ```sh $ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/install_orbit_environment.sh -O install_orbit_environment.sh $ source install_orbit_environment.sh #請使用要執行網站的user(須為具有sudo權限之帳號)來執行,執行後會需要輸入user密碼 +## 以下其他內容均不需執行,可直接進行架站或移機 +``` -# 轉移網站 +## 轉移網站資料 - 1 (把資訊不直接放在command line上,避免資訊存到log中) + +```sh +$ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site_interactive.sh +$ bash -i move_site_interactive.sh +``` + +## 轉移網站資料 - 2 (把資訊放在command line) + +```sh $ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site.sh # 請依照您的需求替換以下這行的變數成實際的值 $ bash -i move_site.sh $ip $port $user $remote_pass $domain $your_local_password -# 也可執行下面這個指令(把一些資訊不直接放在command line上) -$ bash -i move_site_interactive.sh -## 以下其他內容均不需執行,可直接進行架站或移機 ``` ## 安裝libgmp(Ubuntu 14.04需要)