Skip to content

Instantly share code, notes, and snippets.

@marshluca
Created August 15, 2010 03:14
Show Gist options
  • Save marshluca/525012 to your computer and use it in GitHub Desktop.
Save marshluca/525012 to your computer and use it in GitHub Desktop.
configure file on ec2
EC2 softwares configure file:
1.Mysql
/etc/mysql/my.cnf
sudo /etc/init.d/mysql start|stop|restart
2.MongoDB
/etc/init.d/MongoDB
sudo /etc/init.d/MongoDB start|stop|restart
sudo mongod --dbpath /mnt/mongo/data/ --logpath /mnt/mongo/log/mongodb.log --fork --logappend
3.Nginx
sudo /etc/init.d/nginx start|stop|restart
/etc/nginx/nginx.conf
4.Apache
sudo /etc/init.d/apache2 start|stop|restart
sudo apachectl start|stop|restart (for Mac OS)
/etc/apache2/apache2.conf
5.Lighttpd
sudo /etc/init.d/lighttpd start|stop|restart
/etc/lighttpd/lighttpd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment