This repository contains a bash script (install.sh
) for automating the compilation and installation of Nginx from source in a user's home directory.
- A Unix-based system with a shell environment
sudo
access (for installing prerequisite packages)wget
installed
-
Clone the Repository:
Clone this repository to your local machine:
git clone https://github.com/abdellahi-brahim/nginx.git cd nginx
-
Grant Execution Permissions:
Before running the script, ensure it has the necessary execute permissions:
chmod +x install.sh
-
Run the Installation Script:
Execute the installation script:
./install.sh
The script will handle the downloading, extraction, configuration, compilation, and installation of Nginx in your home directory.
-
Verify Installation:
After the installation is complete, you can check the version of Nginx:
$HOME/nginx/sbin/nginx -v
If you encounter any issues or would like to contribute improvements to the script, please open an issue or submit a pull request.