Node.js es un entorno de programaciĆ³n en la capa del servidor basado en el lenguaje de programaciĆ³n ECMAScript.
systemctl enable sshd.service
systemctl start sshd.service
yum install nodejs
yum install npm
yum install grunt
yum install grunt-cli
yum install git
yum install nginx
systemctl enable nginx.service
systemctl start nginx.service
vim /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
service iptables restart
yum install couchdb
systemctl enable couchdb.service
systemctl start couchdb.service
yum install redis
location /some/path/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:3003;
}
[Service]
ExecStart=[node binary] /home/srv-node-sample/[main file]
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=node-sample
User=srv-node-sample
Group=srv-node-sample
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
systemctl enable node-sample
systemctl start node-sample