Created
September 25, 2021 01:15
-
-
Save shoemoney/99803cf0d0e97a7826b8e8c3797bfd58 to your computer and use it in GitHub Desktop.
Amazon Linux 2 - Because other installs suck. This is a work in progresss
This file contains hidden or 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
| enable amazon-linux-extras | |
| enable epel extras | |
| adduser nginx | |
| update yum | |
| upgrade yum | |
| ##get katest nginx | |
| cd /tmp/ | |
| wget https://nginx.org/download/nginx-1.21.3.tar.gz | |
| tar -zxvf nginx-1.21.3.tar.gz | |
| cd nginx-1.21.3/ | |
| yum install openssl-devel gcc xmlsec1-openssl-devel isns-utils | |
| mkdir /etc/nginx/mods_available | |
| mkdir /etc/nginx/mods_enable | |
| mkdir /erx/nginx/logs | |
| chown -Rf nginx:nginx /etc/nginx | |
| ls -las | |
| ls -las /etc/nginx | |
| make clean | |
| make | |
| ./configure --prefix=/etc/nginx | |
| \--modules-path=/etc/nginx/mods_available | |
| \--with-http_ssl_module | |
| \--pid-path=/var/run/nginx.pid | |
| \--without-http_fastcgi_module | |
| \--without-http_uwsgi_module | |
| \--without-http_grpc_module | |
| \--without-http_scgi_module | |
| \--without-mail_imap_module | |
| \--without-mail_pop3_module | |
| make | |
| make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment