开80端口:
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
重新加载防火墙:
sudo firewall-cmd --reload
安装nginx:
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm sudo yum install nginx sudo systemctl start nginx.service sudo systemctl enable nginx.service
安装nodejs:
sudo yum install gcc gcc-c++ wget wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz tar xzf node-v0.10.30.tar.gz cd node-v0.10.30 make sudo make install
centos 7 相关的一些记录
时间: 2024-10-13 16:25:15