Code Monkey home page Code Monkey logo

nginx-install-auto's Introduction

Install/Upgrade Nginx

Increasingly, customers are requested to upgrade Nginx to the latest version.

To minimize time-consuming, we decided to not write a great script that will simplify the process of install/upgrade Nginx to the latest version(mainline).

##Supported ะžS

  • Debian 7,8
  • Ubuntu 12,14,15,16
  • CentOS/CloudLinux 5,6,7

##Localization

  • Russian
  • English

##Logic

  • Definition of distribution
  • Detect repositories with Nginx
  • Detection of key Nginx
  • Check installed Nginx
  • Restart the service and the error if the service is not running

##Start Download the archive with the script from GitHub

wget https://github.com/alexeymalets/nginx-install-auto/archive/master.zip

Unpack the archive

unzip master.zip

Go to directory with script and set permissions 777

cd nginx-install-auto-master && chmod 777 nginx_install.sh

Run the script

sh nginx_install.sh

###Possible problems when using ####1 unzip: command not found

#unzip master.zip
-bash: unzip: command not found

To resolve install the package unzip #####Centos

yum install -y unzip

#####Debian/Ubuntu

apt-get install -y unzip

####2 ERROR: The certificate of 'github.com' is not trusted.

Connecting to github.com (github.com)|192.30.253.112|:443... connected.
ERROR: The certificate of 'github.com' is not trusted.
ERROR: The certificate of 'github.com' hasn't got a known issuer.

To resolve install the package ca-certificates

apt-get install -y ca-certificates

##Distribution The GNU GPL license

The author is not responsible for failures that may arise during the use of the script.

You use it at your own risk.

##Partners

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.