0%

常用开发环境安装配置

nodejs:

1
2
3
#set for nodejs   
export NODE_HOME=/usr/local/node-v.6.x
export PATH=$NODE_HOME/bin:$PATH

安装mongodb:

vim /etc/yum.repos.d/mongodb-org-3.4.repo

[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

yum install -y mongodb-org

如遇到错误可尝试如下方法:
Set SELinux to permissive mode in /etc/selinux/config by setting the SELINUX setting to permissive.
SELINUX=permissive


centos7防火墙开放80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
centos7关闭防火墙
systemctl restart firewalld.service

Error: EACCES: permission denied

sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/lib/node_modules
sudo chown -R $USER /usr/local/lib/node_modules

checking for C compiler … not found

sudo yum groupinstall "Development Tools"
yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel -y