25 lines
554 B
Bash
25 lines
554 B
Bash
#!/bin/bash
|
|
|
|
# Install dependencies
|
|
apt install build-essential dpkg-dev debhelper autotools-dev libgeoip-dev libssl-dev libpcre3-dev zlib1g-dev
|
|
|
|
#Download nginx source
|
|
wget http://nginx.org/download/nginx-1.20.0.tar.gz
|
|
tar -zxvf nginx-1.20.0.tar.gz
|
|
cd nginx-1.20.0
|
|
|
|
# Configure nginx
|
|
sudo ./configure --prefix=/usr/local/alphax/nginx
|
|
sudo make
|
|
sudo make install
|
|
|
|
sudo mkdir alphax-nginx-1.20.0
|
|
cd alphax-nginx-1.20.0
|
|
sudo mkdir DEBIAN
|
|
sudo mkdir usr
|
|
sudo mkdir usr/local
|
|
sudo mkdir usr/local/alphax
|
|
|
|
sudo mv /usr/local/alphax/nginx usr/local/alphax
|
|
|
|
ls
|