Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Nginx1.8 version upgrade method AMH4.2 Free manually compile     - Linux Mint 17 set up the Ruby environment (Linux)

- Ten correct use Redis skills (Database)

- About phpwind 5.01-5.3 0day analysis of the article (Linux)

- Spring-depth understanding of the various annotations (Programming)

- Introduction and MongoDB CRUD (Database)

- Ubuntu GCC, G ++ and fortran Version Switch (Linux)

- RMAN backup file is much larger than the size of the database Cause Analysis (Database)

- Lambda expressions of evolution (Programming)

- CentOS6.x and Windows XP and Windows Server 2003 Open IPv6 related matters (Linux)

- DRBD rapid installation and deployment (Server)

- Unetbootin make use U disk loading Linux system (Linux)

- MongoDB configuration in Ubuntu 14.04 (Database)

- Oracle database file path changes (Database)

- Android development environment to build under Fedora 13 (Linux)

- CentOS 6 kernel upgrade to Kernel 3.x (Linux)

- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)

- Linux system on how to use rsync to synchronize data (Server)

- Java NIO in the world (Programming)

- Depth understanding of the use of Spring Redis (Programming)

- Installation and configuration under Linux SVN server - Backup - Recovery - Scheduled Tasks (Server)

 
         
  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

make

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.
     
         
         
         
  More:      
 
- df show disk space usage (Linux)
- MongoDB start under Linux (Database)
- Use Linux firewall camouflage defense hacked (Linux)
- VMware Workstation + Ubuntu 10.04 Download the Android 2.2 source code (Linux)
- Access.log Apache access log analysis and how to import it into MySQL (Server)
- Linux three ways to set environment variables (Linux)
- MongoDB query timeout exception SocketTimeoutException (Database)
- Oracle data row split multiple lines (Database)
- Binary search and modification (Programming)
- Java rewrite equals method (Programming)
- Redis configuration file interpretation (Database)
- In-depth understanding of PHP ini configuration (Server)
- Linux, Google Test (GTest) test environment to build step (Linux)
- AngularJS application unit testing started (Programming)
- DELL D630 Wireless LAN Driver Installation CentOS6 (Linux)
- CentOS / Debian configuration Gitlab 7.1x to build self Git repository (Linux)
- MySQL combination Git achieve differential backups can be used in the production environment (Database)
- CentOS 6.6 install rsync server (Server)
- Some common regular expressions (Linux)
- Ubucompilator-Ubuntu, Debian, Linux Mint created deb package of graphical tools (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.