|
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. |
|
|
|