Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install nginx amazon linux 2

$ sudo amazon-linux-extras list | grep nginx
 38  nginx1=latest            disabled      [ =stable ]

$ sudo amazon-linux-extras enable nginx1
 38  nginx1=latest            enabled      [ =stable ]
        
Now you can install:
$ sudo yum clean metadata
$ sudo yum -y install nginx
    
$ nginx -v
nginx version: nginx/1.16.1
Comment

install nginx in amazon linux 2

$ sudo amazon-linux-extras list | grep nginx
 38  nginx1=latest            disabled      [ =stable ]

$ sudo amazon-linux-extras enable nginx1
 38  nginx1=latest            enabled      [ =stable ]
        
Now you can install:
$ sudo yum clean metadata
$ sudo yum -y install nginx
    
$ nginx -v
nginx version: nginx/1.16.1
Comment

PREVIOUS NEXT
Code Example
Shell :: enable lightdm 
Shell :: how to completely uninstall android studio mac 
Shell :: npm install redux form 
Shell :: git delete tag name 
Shell :: conda install boto3 
Shell :: linux install doxygen 
Shell :: how to reset kali keyring 
Shell :: install lutris kali linux 
Shell :: format usb using cmd 
Shell :: install aws cli in ec2 centos 
Shell :: macos install airport 
Shell :: install .deb files in terminal linux 
Shell :: powershell remove folder and contents 
Shell :: how to unrar in linux 
Shell :: ubuntu install Tesseract OCR 
Shell :: add remote origin git 
Shell :: restart network linux 
Shell :: bash search file in directory 
Shell :: rubymine ubuntu 
Shell :: docker install manjaro 
Shell :: how to clear all the caches in ubuntu 
Shell :: install powershell 
Shell :: uninstall cortana 
Shell :: clean cache in linux 
Shell :: install git flow linux 
Shell :: rename branch to main 
Shell :: change wp permission ubuntu 
Shell :: get public ssh key 
Shell :: how to install angular cli in ubuntu 20.04 
Shell :: certbot remove certificate 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =