Fix some vm cannot fetch ip of domain.

This commit is contained in:
BoHung Chiu 2021-08-02 18:03:09 +08:00
parent 5a2d22cf78
commit 2331cf5af6
1 changed files with 8 additions and 2 deletions

View File

@ -118,8 +118,14 @@ $ sudo apt update && apt-cache policy libssl1.0-dev
$ sudo apt-get install libssl1.0-dev
```
## 設定host IP(避免VM抓不到domain對應的IP)
```sh
# sudo vim /etc/hosts 加入以下內容
59.120.142.210 gitlab.tp.rulingcom.com
59.120.142.206 ruling.digital store.tp.rulingcom.com
151.101.1.227 index.rubygems.org rubygems.org
104.192.141.1 bitbucket.org
```
## 安裝 RVM (Ruby 版本和套件的管理程式)
```sh