Last active
May 31, 2016 05:23
-
-
Save ad3n/17a6adb3cf721fce2147819738e03b06 to your computer and use it in GitHub Desktop.
Install HAProxy, Nginx, PHP, NodeJS on AWS [Amazon Linux]
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
[BOTH] | |
sudo yum check-update | |
sudo yum update | |
[HAProxy] | |
//Load Balancer ga butuh service ini | |
sudo service sendmail stop | |
sudo chkconfig sendmail off | |
sudo chkconfig sendmail --del | |
//Install Load Balancer | |
sudo yum install --enablerepo=epel haproxy | |
sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_orig | |
//Config | |
sudo vi /etc/haproxy/haproxy.cfg | |
//Start Service | |
sudo service haproxy start | |
[Nginx] | |
sudo yum install -y gcc make | |
sudo yum install -y nginx php56-fpm | |
sudo yum install php56 php56-fpm php65-pecl-apc php56-mysql php56-intl php56-iconv php56-mbstring php56-json php56-zip php56-dom php56-gd php56-icu php56-pdo | |
//Config | |
sudo vi /etc/nginx/conf.d/virtual.conf | |
sudo vi /etc/php-fpm.d/www.conf | |
//Start Service | |
sudo chkconfig nginx on | |
sudo chkconfig php-fpm on | |
sudo service nginx start | |
sudo service php-fpm start | |
[NodeJS] | |
sudo yum install nodejs npm --enablerepo=epel | |
sudo npm install -g uglify-js uglifycss | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ini skrip install yg pake bash ??