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 :: nvm command node not found 
Shell :: ubuntu packages 
Shell :: ubuntu find filename recursive 
Shell :: linux commad to show directories 
Shell :: how to logout in linux kali 
Shell :: powershell get aliases 
Shell :: linux activate ssh 
Shell :: git push ci skip 
Shell :: install dvipng ubuntu 
Shell :: powershell webrequest 
Shell :: docker install linux mint 
Shell :: restart computer by terminul in ubuntu 
Shell :: ImportError: No module named alsaaudio 
Shell :: git ignore except 
Shell :: laravel in ubuntu 
Shell :: linux update command 
Shell :: superclass mismatch for class Command 
Shell :: set java home path 
Shell :: How to unzip a file using the cmd? 
Shell :: prettier code formatter is removing ; 
Shell :: install kind kubernetes 
Shell :: check ip address linux 
Shell :: how to print substring in bash script 
Shell :: git push in a new branch 
Shell :: bash store contents of file in array 
Shell :: install cloudinary storage command 
Shell :: stop nginx service 
Shell :: ssh rsa pub to pem 
Shell :: run mongodb on desktop 
Shell :: docker /bin/sh: apt-get: not found 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =