■
# 今後複数の仮想マシンを作ることを想定して、それらをまとめるフォルダ(MyVagrant)を作る mkdir MyVagrant # MyVagrantに移動する cd MyVagrant # 仮想マシンを作るフォルダを作る(MyCentOS) mkdir MyCentOS # MyCentOSに移動する cd MyCentOS # 仮想マシン設定用のVagrantfileを作る vagrant init bento/centos-7.5 # Vagrantfileを編集して仮想マシンのIPアドレスを192.168.33.10にする (動画をご覧ください) # 仮想マシンを起動する(少し時間かかります) vagrant up # 仮想マシンの状態を確認する vagrant status
#gitをインストール
$ sudo yum -y remove git
$ sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel autoconf asciidoc xmlto docbook2X make gcc
$ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
$ wget https://github.com/git/git/archive/v2.17.1.tar.gz
$ tar -zxf v2.17.1.tar.gz
$ cd git-2.17.1
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
$ git --version
$ rm -rf git-2.17.1.tar.gz
#NVMのインストール
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
The script clones the nvm repository to ~/.nvm
and adds the source line to your profile (~/.bash_profile
, ~/.zshrc
, ~/.profile
, or ~/.bashrc
).
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#nodeインストール
nvm install v10.4.0
#最新のNVMをインストール