LNMP Status Management Command description and Nginx, MYSQL/MARIADB, PHP upgrade Tutorials

Source: Internet
Author: User
Tags fpm memcached

State management commands are divided into LNMP State management commands and Lnmpa State management commands, Lnmpa represents Linux under Nginx, MySQL, PHP, Apache, such as the Web server architecture, is the combination of lamp and lnmp the advantages of the new Web server architecture.

LNMP Status Management command:

LNMP State Management:/ROOT/LNMP {start|stop|reload|restart|kill|status}
Nginx State Management:/etc/init.d/nginx {Start|stop|reload|restart}
MySQL State management:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
memcached State Management:/etc/init.d/memcached {Start|stop|restart}
PHP-FPM State Management:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
PUREFTPD State Management:/etc/init.d/pureftpd {start|stop|restart|kill|status}
PROFTPD State Management:/etc/init.d/proftpd {start|stop|restart|reload}

such as restart Lnmp, input command:/root/lnmp Restart can be, separate restart Mysql:/etc/init.d/mysql restart

Lnmpa Status Management command:

Lnmpa State Management:/root/lnmpa {start|stop|reload|restart|kill|status}
Nginx State Management:/etc/init.d/nginx {Start|stop|reload|restart}
MySQL State management:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
memcached State Management:/etc/init.d/memcached {Start|stop|restart}
PUREFTPD State Management:/etc/init.d/pureftpd {start|stop|restart|kill|status}
PROFTPD State Management:/etc/init.d/proftpd {start|stop|restart|reload}
Apache State Management:/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}


Linux under Nginx, MYSQL/MARIADB, PHP upgrade steps.


If the current operating environment is not a problem, it is not recommended to run the new version directly to overwrite, overwriting upgrade may have problems, may also cause data loss. If you want to use the new version can back up the data after the/uninstall.sh download the new version of the installation, or directly rebuild reinstall system after the installation of the new version, the premise is backup data!!
The Nginx, mysql/mariadb, and PHP upgrade scripts are already included in Lnmp's current LNMP v1.1 to help build upgrades to programs in your environment. (Note: All of the following operations need to be run in the directory after the LNMP compression package is uncompressed)

First, nginx upgrade script
This script can be used to upgrade Nginx to any version, Access http://nginx.org/en/download.html to find the latest version number and previous version number of Nginx. such as: 1.6.0
Execution:./upgrade_nginx.sh Enter the version number when prompted, and return to confirm that you can start the upgrade nginx.

Second, MySQL upgrade script
This script can be used to upgrade MySQL to most versions, the MySQL upgrade script will be the upgrade of all databases before the backup, but strongly recommend users to upgrade their own backup before!!
Execution:./upgrade_mysql.sh need to enter the MySQL root password for verification, validation does not pass will not be able to upgrade, verification can be passed after the http://dev.mysql.com/downloads/mysql/ Get the version number of MySQL, input back to confirm, if you want to enable InnoDB, input y, uncertain words can also enter the input y return confirmation, return to confirm can start to upgrade. The log file for the mysql_upgrade** date **.log is produced in the/root directory for troubleshooting when an error occurs.

third, MySQL upgrade to mariadb script
MARIADB is a branch of MySQL that is primarily maintained by the open source community. MARIADB compatible MySQL, led by the founder of MySQL development. It is still recommended to back up yourself first!
Execution:./upgrade_mysql2mariadb.sh need to enter the MySQL root password for verification, validation does not pass will not be able to upgrade, verification can be passed after the https://downloads.mariadb.org/ Get MARIADB version number, input back to confirm, if you want to enable InnoDB, input y, uncertain words can also enter the input y return confirmation, return to confirm can start to upgrade. The log file for the mysql2mariadb_upgrade** date **.log is produced in the/root directory for troubleshooting when an error occurs.

iv. mariadb Upgrade Scripts
It is still recommended to back up yourself first!
Execution:./upgrade_mariadb.sh needs to enter the MARIADB root password for authentication, verify that it will not be able to upgrade without passing, verify that you can get MARIADB version number to https://downloads.mariadb.org/after passing , input back to confirm, if you want to enable InnoDB, input y, uncertain words can also enter the input y return confirmation, return to confirm can start to upgrade. The log file for the mariadb_upgrade** date **.log is produced in the/root directory for troubleshooting when an error occurs.

v. LNMP PHP upgrade Script
Before upgrading PHP, please confirm that your website program supports the upgrade to the PHP version, you can go to the website of the PHP program you use to query the relevant version of support information.
Execution:./upgrade_php.sh to http://www.php.net/downloads.php get the version number, enter the version number, such as 5.3.28 carriage return, return to confirm to start the upgrade.

vi. Lnmpa PHP Upgrade Script This script is dedicated to Lnmpa, LNMP users please do not run!
Before upgrading PHP, please confirm that your website program supports the upgrade to the PHP version, you can go to the website of the PHP program you use to query the relevant version of support information.
Execution:./upgrade_lnmpa_php.sh to http://www.php.net/downloads.php get the version number, enter the version number, such as 5.3.28 carriage return, return to confirm to start the upgrade.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.