Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install nginx on ec2

#!/bin/bash

# Install Nginx
amazon-linux-extras install nginx1.12

# Back up existing config
mv /etc/nginx /etc/nginx-backup

# Download the configuration from S3
aws s3 cp s3://{my_bucket}/nginxconfig.io-example.com.zip /tmp

# Install new configuration
unzip /tmp/nginxconfig.io-example.com.zip -d /etc/nginx
Comment

install nginx on ec2

#!/bin/bash

# Install Nginx
amazon-linux-extras install nginx1.12

# Back up existing config
mv /etc/nginx /etc/nginx-backup

# Download the configuration from S3
aws s3 cp s3://{my_bucket}/nginxconfig.io-example.com.zip /tmp

# Install new configuration
unzip /tmp/nginxconfig.io-example.com.zip -d /etc/nginx
Comment

PREVIOUS NEXT
Code Example
Shell :: git show whole file at commit 
Shell :: cool welcome message linux 
Shell :: install moment 
Shell :: jq list top nodes 
Shell :: helm upgrade repos 
Shell :: How to delete dir, subdirectory, fils all in cmd 
Shell :: expose deployment k8 
Shell :: npm installl chalk 
Shell :: apt upgrade full 
Shell :: piping commands 1 
Shell :: how to install face_recognition with conda 
Shell :: generate token symfony authentication api platform 
Shell :: command to install any package using Pip 
Shell :: make kernel module 
Shell :: ssh file transfer 
Shell :: dir in file txt 
Shell :: jq command in linux 
Shell :: how to download dash through pip in conda prompt 
Shell :: mac terminal curl trim response 
Shell :: git repo 
Shell :: execute script in linux 
Shell :: bash if else if 
Shell :: turn a folder into a git repo 
Shell :: Examples of add-apt-repository and updating the APT cache 
Shell :: wsl lost internet connection 
Shell :: powershell equivalent of rm 
Shell :: Linux Find word and replace text 
Shell :: bash check if cd successful 
Shell :: view git branch changes graphically 
Shell :: vim append to line 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =