服务器迁移到centos

迁移服务器到centos

更新内核,并升级CentOS

1
2
yum update kernel  
yum update && yum upgrade

git

1
yum -y install git

zsh

1
yum -y install zsh

o-my-zsh

1
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

nvm

1
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | zsh

source ~/.zshrc

1
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node

或者

1
NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node nvm install

nginx

1
2
3
4
5
6
7
8
9
10
vim /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

yum list |grep nginx
yum -y install nginx