Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Nginx1.8 version upgrade method AMH4.2 Free manually compile     - Docker build private warehouse (Server)

- Ubuntu 14.04 installed Nvidia CUDA 7.5 and build Python Theano deep learning development environment (Linux)

- Shell programming entry (Programming)

- RAID disk array Description (Linux)

- Use the top command (Linux)

- Apache Mina framework Practice (Programming)

- Install VMware Tools in Debian (Linux)

- New experience Budgie (Budgerigar) desktop environment (Linux)

- MySQL innodb_table_stats table does not exist solution (Database)

- Give your photos Instagram style filters plus program in ubuntu (Linux)

- VirtualBox snapshots (Linux)

- See Linux kernel, CPU, memory, and various versions of the command module and means (Linux)

- Linux System Getting Started Learning: Linux common log file (Linux)

- YUM install desktop environment in CentOS (Linux)

- Linux excellent text editor (Markdown, LaTeX, MathJax) (Linux)

- An Analysis of the C Algorithm for Calculating the Number of Days Between Date (Programming)

- Linux common network tools: Scan routing of mtr (Linux)

- systemd-nspawn Quick Guide (Linux)

- See how --nand flash timing diagram of a read operation Comments (Programming)

- Programmer editor Vim (Linux)

  Nginx1.8 version upgrade method AMH4.2 Free manually compile
  Add Date : 2018-11-21      
  After AMH from the free version to stay in version 4.2, there will be no updates and upgrades, and to provide official documentation solutions is relatively small, after all, free and unprofitable products or little interest. However, for most of the site environment, install and use the free version or AMH4.2 enough, WEB panel with a key package, or manual translation environment, is nothing more than a combination of several environmental installation in the system only.

For example, AMH environment uses Nginx, PHP, MYSQL combination only, the default version of PHP5.3, Nginx1.4, MYSQL5.5, a little bit old Nginx and PHP, we will upgrade to the current stable today Nginx1.4 version 1.8 version is more perfect.

It should be mentioned, we upgrade the existing backup site must pay attention, because in case of problems we can also recover data, or we have no big environmental problem, so use the, sometimes pursuit of the latest version is not a good thing, such as a few days ago also upgrade to Windows10 version, feeling not as easy to use Windows8.1.

First, check the current version of Nginx

nginx -V

Then we can get this information.

Check the current version of Nginx

Here we can see the current version is 1.4.7, we also need the following information copied.

--prefix = / usr / local / nginx --user = www --group = www --with-http_ssl_module --with-http_gzip_static_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_scgi_module

Here we reproduce themselves, do not copy my above.

Second, download the stable version decompression Nginx1.8

wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar -zxvf nginx-1.8.0.tar.gz
cd nginx-1.8.0

Second, the compiler environment

1, the implementation

./configure --prefix = / usr / local / nginx --user = www --group = www --with-http_ssl_module --with-http_gzip_static_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module - without-http_uwsgi_module --without-http_scgi_module

Script obtained above and then add red ./configure, direct execution.

2. Compile


Third, the new Nginx configuration profile

1, moving the old files

mv / usr / local / nginx / sbin / nginx /usr/local/nginx/sbin/nginx.old;

2, the new new

cp objs / nginx / usr / local / nginx / sbin / nginx;

3. Perform the upgrade

make upgrade

If you need to upgrade to other editions, also can refer to the above steps

Finally, restart VPS, the panel and the site is not being given, it seems that there is no problem. However, when the operation of our own still need to pay attention to the backup environment.
- Linux NFS service fixed ports and firewall configuration (Linux)
- Ubuntu install virtual machine software VirtualBox 4.3.10 (Linux)
- Android media library of analysis: MediaProvider (Programming)
- Redis 3.0.3 Cluster Setup (Database)
- Python format string (Programming)
- Linux firewall Iptables study notes (Linux)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
- Oracle 11g manually create a database (Database)
- Android Launcher3 Application List Modify a transparent background (Linux)
- APF firewall installation and configuration under Linux (Linux)
- Windows Remote Desktop Management CentOS 6.4 (Linux)
- MySQL use benchmarking tool sysbench (Database)
- Install FFmpeg compiling from source in Mac OS X environment (Linux)
- The security administrator network analysis tools SATAN Introduction under Linux (Linux)
- Install Websphere MB required system rpm package under Linux (Linux)
- In Spring AOP example explanation (Programming)
- Vim (Linux)
- Getting Started with Linux system to learn: How do I know which processes are running on the CPU core (Linux)
- ASP.NET 5 tutorial series (Server)
- Grub2: Save Your bootloader (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.