This file contains hidden or 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
| ###################################### MIRROR AND WEBSITE ###################################### | |
| wget -np -nv -m http://preview.byaviators.com/template/realsite/ | |
| ###################################### Find out the largest files in linux ###################################### | |
| du -hs * | sort -rh | head -5 | |
| find / -xdev -type f -size +100M | |
| ###################################### Kill a port when already in use ###################################### |
This file contains hidden or 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
| Problem : exception in initAndListen: 29 Data directory /data/db not found., terminating | |
| sudo mkdir -p /data/db | |
| Problem :Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating | |
| Change /var/lib/mongodb to /data/db in /etc/mongo.conf | |
| chown -R mongodb:mongodb /data/db | |
| Problem : Unable to lock file: /data/db/mongod.lock errno:11 Resource temporarily unavailable. | |
| Remove mongodb.lock file from /data/db | |
| mongod --dbpath /data/db --repair |
This file contains hidden or 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
| ############### Ruby ############### | |
| sudo apt-get update | |
| sudo apt-get install curl libcurl4-openssl-dev | |
| curl -L get.rvm.io | bash -s stable | |
| source ~/.rvm/scripts/rvm | |
| rvm requirements | |
| rvm install 2.1.0 | |
| rvm use 2.1.0 --default | |
This file contains hidden or 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
| For Language Pack | |
| sudo locale-gen UTF-8 | |
| sudo apt-get update | |
| #### Git ##### | |
| sudo apt-get install git | |
| ############## Apache ############## | |
| Installing Apache | |
| sudo apt-get install apache2 |