Remove old README.md.
This commit is contained in:
parent
8110a4374d
commit
b18befc511
86
README.md
86
README.md
|
@ -56,63 +56,6 @@ $ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/
|
|||
$ bash install_nginx.sh
|
||||
$ sudo wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/orbit_nginx -O /etc/nginx/orbit_sites/xxx_ooo # 建立網站 nginx 設定檔,xxx 為學校縮寫,ooo 為系所、單位縮寫。內容參考附註 nginx 設定檔
|
||||
```
|
||||
## 安裝 MongoDB 3.2.22
|
||||
```sh
|
||||
$ # 匯入 MongoDB 公鑰到套件管理系統
|
||||
$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb #Ubuntu 20.04LTS
|
||||
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb #Ubuntu 20.04LTS
|
||||
$ wget -qO - https://www.mongodb.org/static/pgp/server-3.2.asc | sudo apt-key add -
|
||||
$ # 建立 list file
|
||||
$ echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
|
||||
$ sudo apt-get update # 更新套件管理系統
|
||||
$ # 下載並安裝 MongoDB 3.2.22
|
||||
$ sudo apt-get install -y mongodb-org=3.2.22 mongodb-org-server=3.2.22 mongodb-org-shell=3.2.22 mongodb-org-mongos=3.2.22 mongodb-org-tools=3.2.22
|
||||
$ mongo --version # 查看 MongoDB 版本
|
||||
$ sudo systemctl status mongod # 查看 MongoDB 是否啟動
|
||||
$ sudo systemctl restart mongod # 安全啟動 MongoDB,若已啟動則可跳過此步驟
|
||||
```
|
||||
|
||||
## 安裝 ImageMagick 6.9.7-4 (部份預設模組需要處理圖片,此為相依軟體)
|
||||
```sh
|
||||
$ sudo apt-get install libjpeg62
|
||||
$ wget http://download.sourceforge.net/libpng/libpng-1.5.13.tar.gz
|
||||
$ tar xvfz libpng-1.5.13.tar.gz
|
||||
$ cd libpng-1.5.13/
|
||||
$ ./configure
|
||||
$ make
|
||||
$ sudo make install
|
||||
# 編譯jpeg套件
|
||||
$ sudo apt install -y libltdl-dev graphviz libpng-dev libfftw3-dev
|
||||
$ sudo apt-get install -y libjpeg-turbo8-dev
|
||||
$ sudo apt install -y libgif-dev libjpeg-dev libopenexr-dev libpng-dev libwebp-dev
|
||||
$ sudo apt install -y cmake pkg-config libbrotli-dev
|
||||
# Build imagemagick
|
||||
$ wget http://www.imagemagick.org/download/ImageMagick.tar.gz
|
||||
$ tar xvfz ImageMagick.tar.gz
|
||||
$ cd ImageMagick-7.1.0-16/ # cd ImageMagick-x.x.x-x(版本號)
|
||||
$ ./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-shared --with-modules
|
||||
##在configure跑完後,可確認Delegates是否有jpeg png zlib(最後一行)
|
||||
$ make
|
||||
$ sudo make install
|
||||
$ sudo ln -s /usr/local/lib/* /usr/lib/.
|
||||
$ sudo ln -s /usr/local/lib/pkgconfig/* /usr/lib/pkgconfig/.
|
||||
$ sudo ln -s /usr/local/bin/* /usr/bin/.
|
||||
$ convert -list configure #確認為版本7.1.0.0以上
|
||||
####以下為舊的imagemagick安裝方式(請不要使用,會有圖片上傳後,解碼失敗問題)
|
||||
#$ sudo apt install imagemagick
|
||||
#$ convert -version # 檢查是否安裝成功,並確認版本
|
||||
#$ identify -version #檢查Delegates是否有jpeg png zlib
|
||||
```
|
||||
|
||||
## Ubuntu 20.04 才需要的步驟
|
||||
|
||||
```sh
|
||||
###安裝 libssl1.0-dev
|
||||
$ sudo sh -c "echo 'deb http://security.ubuntu.com/ubuntu bionic-security main' >> /etc/apt/sources.list"
|
||||
$ 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 加入以下內容
|
||||
|
@ -121,35 +64,6 @@ $ sudo apt-get install libssl1.0-dev
|
|||
151.101.1.227 index.rubygems.org rubygems.org
|
||||
104.192.141.1 bitbucket.org
|
||||
```
|
||||
## 安裝 RVM (Ruby 版本和套件的管理程式)
|
||||
|
||||
```sh
|
||||
$ sudo apt install gnupg2
|
||||
$ gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
||||
$ \curl -sSL https://get.rvm.io | bash -s stable
|
||||
$ source /home/rulingcom/.rvm/scripts/rvm
|
||||
$ sudo vi /etc/apt/sources.list # Ubuntu 20.04LTS add `deb http://security.ubuntu.com/ubuntu bionic-security main`
|
||||
$ rvm install 2.1.2
|
||||
$ rvm install 2.1.10
|
||||
$ rvm --default use 2.1.10
|
||||
```
|
||||
## 若以上安裝RVM失敗可用另一種方式安裝RVM和ruby
|
||||
|
||||
```sh
|
||||
$ sudo apt-get install software-properties-common
|
||||
$ sudo apt-add-repository -y ppa:rael-gc/rvm
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install rvm
|
||||
$ echo 'source "/etc/profile.d/rvm.sh"' >> ~/.bashrc
|
||||
$ source "/etc/profile.d/rvm.sh"
|
||||
$ rvm install 2.1.2
|
||||
$ rvm install 2.1.10
|
||||
$ rvm --default use 2.1.10
|
||||
```
|
||||
## 安裝screen
|
||||
```sh
|
||||
$ sudo apt-get install screen
|
||||
```
|
||||
## 安裝 R4.5
|
||||
### 一、建立 ssh key pair
|
||||
```sh
|
||||
|
|
Loading…
Reference in New Issue