GithubHelp home page GithubHelp logo

oohnoitz / nginx-installer Goto Github PK

View Code? Open in Web Editor NEW
29.0 8.0 20.0 19 KB

Bash script designed to ease the process of compiling nginx with multiple patches and modules manually.

Shell 100.00%
nginx installer bash-script nginx-installation

nginx-installer's Introduction

nginx-installer

This installer is a bash script written to ease the compiling process of custom nginx installs with additional patches and/or modules. It will download the specified nginx version provided, apply any patches and/or modules available at runtime, and begin the compile and install process.

Usage

  1. Clone the repo.

    $ git clone https://github.com/oohnoitz/nginx-installer.git
    
  2. Download Modules

    $ ./install-module.sh <module>`
    

    The <module> parameter should be replaced with the name of a module in the list below.

  3. Apply Patches

    1. Create a patches directory.
      $ mkdir -p patches
      
    2. Store all patches in the patches directory.
  4. Install!

    $ sudo ./install-nginx.sh <version>
    

    The <version> parameter should be replaced with the actual version number of nginx you wish to compile and install. For example, $ sudo ./install-nginx 1.5.10 would compile and install nginx 1.5.10 onto your server.

List of Installable Modules

This is an extensive list of modules that can be retrieved with the included script which will be applied to the installation automatically. If you have any requests, feel free to contribute or ask.

nginx-installer's People

Contributors

oohnoitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nginx-installer's Issues

SPDY param for 1.4.0+

With the latest stable release, SPDY is no longer installed via patch, it's a config param.

How to make with module and install

Hi, want to install ngx_rtmp, can you please give me the commands.
I tried several times but getting error.

sudo apt update
adduser testuser
usermod -aG sudo testuser

apt-get update
apt-get install git-core

cd testuser
git clone https://github.com/oohnoitz/nginx-installer.git

after that I'm unable to include the modules

./install-module.sh <ngx_rtmp>`
./install-module.sh ngx_rtmp
./install-module.sh arut

tried above 3 commands but not working.

tester@Test:~/nginx-installer$ sudo ./install-nginx.sh 1.18.0

tester@Test:~/nginx-installer$ sudo ./install-nginx.sh 1.18.0
Downloading: nginx-1.18.0 ... [DONE]
Extracting: nginx-1.18.0 ... [DONE]
Applying Patch: *
./install-nginx.sh: line 58: patches/*: No such file or directory
Configuring... --with-debug --with-ipv6 --with-http_realip_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --add-module=modules/ngx_rtmp
checking for OS

  • Linux 4.15.0-101-generic x86_64
    checking for C compiler ... not found

./configure: error: C compiler cc is not found

Compiling...
make: *** No rule to make target 'build', needed by 'default'. Stop.
Installing...
make: *** No rule to make target 'install'. Stop.
Finished!
tester@Test:~/nginx-installer$

installation is not successful.

Originally posted by @padma-lakshmi in #4 (comment)

bug for make

Hi there,

I got this error when I try to install nginx

Configuring... --with-debug --with-ipv6 --with-http_realip_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module
./configure: error: invalid option "--with-http_v2_module"
Compiling...
make: *** No targets specified and no makefile found.  Stop.
Installing...
make: *** No rule to make target 'install'.  Stop.
Finished!

Thanks for this tool!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.