Last active
August 29, 2015 14:06
-
-
Save bchumney/890a3c3215ce153d2d46 to your computer and use it in GitHub Desktop.
NodeJS and Server Env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To make Apache and NodeJS hold hands, add the following to httpd.conf | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
ProxyPass /node http://localhost:3000/ | |
#or whatever your designated node port is | |
#CentOS server setup and common commands | |
sudo yum install httpd | |
sudo service httpd start | |
#find your server's IP addr | |
ifconfig eth0 | grep inet | awk '{ print $2 }' | |
sudo yum install mysql-server | |
sudo service mysqld start | |
#set root password | |
sudo /usr/bin/mysql_secure_installation | |
#access mysql shell | |
mysql -u root -p | |
sudo yum install php php-mysql | |
yum search php- | |
yum info {{name of the module}} | |
sudo yum install {{name of the module}} | |
sudo chkconfig httpd on | |
sudo chkconfig mysqld on | |
#NodeJS and Grunt common commands | |
npm install {{module}} (-g) | |
npm install (--save-dev) | |
#for when in shared VM folders | |
npm install (--save-dev) --no-bin-links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment