$ brew install nginx
Setelah install jalankan nginx.
$ sudo nginx
Test apakah nginx sudah running, buka url http://localhost:8080.
$ brew install nginx
Setelah install jalankan nginx.
$ sudo nginx
Test apakah nginx sudah running, buka url http://localhost:8080.
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| #create sites-enabled directory to hold config symlinks | |
| sudo mkdir -p /etc/nginx/sites-enabled | |
| #symlink the webapps directory to /var/www/apps | |
| sudo mkdir -p /var/www | |
| sudo ln -ns /home/minhajuddin/webapps /var/www/apps | |
| #symlink an nginx config file to a webapps config file | |
| sudo ln -ns /var/www/apps/ramanujan/config/nginx.conf /etc/nginx/sites-enabled/ramanujan.conf | |
| #hookup /etc/init.d/nginx to auto-start at startup | |
| /usr/sbin/update-rc.d -f nginx defaults |
| # NGINX CodeIgniter Config | |
| server | |
| { | |
| server_name .organizetheweb.com; | |
| access_log /var/log/nginx/organizetheweb.com.access.log; | |
| root /var/www/organizetheweb.com/trunk; |
| # INSERT | |
| # -- before: Check uniqueness | |
| # -- after: | |
| # UPDATE | |
| # -- before: Log old data | |
| # -- after: Email admin queue | |
| # DELETE | |
| # -- before: check for dues | |
| # -- after: System cleanup |
| sudo apt-get update | |
| sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
| sudo apt-get install libfreetype6 libfreetype6-dev -y | |
| sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
| cd ~ | |
| export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
| wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
| sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
| sudo mv $PHANTOM_JS /usr/local/share | |
| sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |