1、利用CentOS Linux系统自带的yum命令安装、升级所需的程序库:
sudo -s LANG=C yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers patch git libtool automake telnet cmake bison bind-utils jwhois
2、先安装epel
yum install eple -release
3、安装nodejs
yum install nodejs
node --version
4、安装mongodb-server服务器端
yum install mongodb-server
5、安装mongodb客户端
yum install mongodb
mongo --version
6、最后安装redis
yum install redis
redis-cli --version
7、安装npm
yum install npm
8、需要关闭npm的认证
npm config set strict-ssl false
9、安装cnpm使用淘宝镜像
yum install -g cnpm --registry=https://registry.npm.taobao.org/
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/3050.html