PhyrePanel/compilators/debian/nginx-compile.sh
Bozhidar Slaveykov 18c074fafa update
2023-11-25 01:56:11 +02:00

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