{"id":7648,"date":"2015-09-23T05:01:15","date_gmt":"2015-09-23T05:01:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/09\/23\/lj2007331-lnmp\/"},"modified":"2022-08-30T15:49:29","modified_gmt":"2022-08-30T15:49:29","slug":"lj2007331-lnmp","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/09\/23\/lj2007331-lnmp\/","title":{"rendered":"lj2007331\/lnmp"},"content":{"rendered":"<p>This script is free collection of shell scripts for rapid deployment of <code>LEMP<\/code>\/<code>LAMP<\/code>\/<code>LNMP<\/code> stacks (<code>Linux<\/code>, <code>Nginx<\/code>\/<code>Tengine<\/code>, <code>MySQL<\/code>\/<code>MariaDB<\/code>\/<code>Percona<\/code> and <code>PHP<\/code>) for CentOS\/Redhat Debian and Ubuntu.<\/p>\n<p>Script features:<\/p>\n<ul>\n<li>Constant updates<\/li>\n<li>Source compiler installation, most source code is the latest stable version, and downloaded from the official website<\/li>\n<li>Fixes some security issues<\/li>\n<li>You can freely choose to install database version (MySQL-5.6, MySQL-5.5, MariaDB-10.0, MariaDB-5.5, Percona-5.6, Percona-5.5)<\/li>\n<li>You can freely choose to install PHP version (php-5.3, php-5.4, php-5.5, php-5.6, php-7\/phpng(alpha))<\/li>\n<li>You can freely choose to install HHVM version (CentOS6.5 64bit, CentOS7 64bit)<\/li>\n<li>You can freely choose to install Nginx or Tengine<\/li>\n<li>You can freely choose to install Apache version (Apache-2.4, Apache-2.2)<\/li>\n<li>According to their needs can to install ZendOPcache, xcache, APCU, eAccelerator, ionCube and ZendGuardLoader (php-5.4, php-5.3)<\/li>\n<li>According to their needs can to install Pureftpd, phpMyAdmin<\/li>\n<li>According to their needs can to install memcached, redis<\/li>\n<li>According to their needs can to optimize MySQL and Nginx with jemalloc or tcmalloc<\/li>\n<li>Add a virtual host script provided<\/li>\n<li>Nginx\/Tengine, PHP, Redis, phpMyAdmin upgrade script provided<\/li>\n<li>Add backup script provided<\/li>\n<\/ul>\n<h2>How to use<\/h2>\n<pre><code>   yum -y install wget screen # for CentOS\/Redhat\n   #apt-get -y install wget screen # for Debian\/Ubuntu \n   wget http:\/\/mirrors.linuxeye.com\/lnmp.tar.gz\n   # or download include source packages\n   wget http:\/\/mirrors.linuxeye.com\/lnmp-full.tar.gz\n   tar xzf lnmp.tar.gz\n   # or tar xzf lnmp-full.tar.gz\n   cd lnmp\n   # Prevent interrupt the installation process. If the network is down, \n   # you can execute commands `screen -r lnmp` network reconnect the installation window.\n   screen -S lnmp\n   .\/install.sh\n<\/code><\/pre>\n<h2>How to add a virtual host<\/h2>\n<pre><code>   .\/vhost.sh\n<\/code><\/pre>\n<h2>How to add FTP virtual user<\/h2>\n<pre><code>   .\/pureftpd_vhost.sh\n<\/code><\/pre>\n<h2>How to backup<\/h2>\n<pre><code>   .\/backup_setup.sh # Set backup options \n   .\/backup.sh # Start backup, You can add cron jobs\n   # crontab -l # Examples \n     0 1 * * * cd ~\/lnmp;.\/backup.sh  &gt; \/dev\/null 2&gt;&amp;1 &amp;\n<\/code><\/pre>\n<h2>How to manage service<\/h2>\n<p>Nginx\/Tengine:<\/p>\n<pre><code>   service nginx {start|stop|status|restart|reload|configtest}\n<\/code><\/pre>\n<p>MySQL\/MariaDB\/Percona:<\/p>\n<pre><code>   service mysqld {start|stop|restart|reload|status}\n<\/code><\/pre>\n<p>PHP:<\/p>\n<pre><code>   service php-fpm {start|stop|restart|reload|status}\n<\/code><\/pre>\n<p>Apache:<\/p>\n<pre><code>   service httpd {start|restart|stop}\n<\/code><\/pre>\n<p>Pure-Ftpd:<\/p>\n<pre><code>   service pureftpd {start|stop|restart|status}\n<\/code><\/pre>\n<p>Redis:<\/p>\n<pre><code>   service redis-server {start|stop|status|restart|reload}\n<\/code><\/pre>\n<p>Memcached:<\/p>\n<pre><code>   service memcached {start|stop|status|restart|reload}\n<\/code><\/pre>\n<h2>How to upgrade<\/h2>\n<pre><code>   .\/upgrade_php.sh # upgrade PHP\n   .\/upgrade_web.sh # upgrade Nginx\/Tengine\n   .\/upgrade_redis.sh # upgrade Redis \n   .\/upgrade_phpmyadmin.sh # upgrade phpMyAdmin \n<\/code><\/pre>\n<h2>How to uninstall<\/h2>\n<pre><code>   .\/uninstall.sh\n<\/code><\/pre>\n<h2>Installation<\/h2>\n<p>Follow the instructions in Wiki Installation page<\/p>\n<p>For feedback, questions, and to follow the progress of the project (Chinese):<br \/>\nlnmp\u6700\u65b0\u6e90\u7801\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script is free collection of shell scripts for rapid deployment of LEMP\/LAMP\/LNMP stacks (Linux, Nginx\/Tengine, MySQL\/MariaDB\/Percona and PHP) for CentOS\/Redhat Debian and Ubuntu. Script features: Constant updates Source compiler installation, most source code is the latest stable version, and downloaded from the official website Fixes some security issues You can freely choose to install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-7648","post","type-post","status-publish","format-standard","hentry","category-php-memcached","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7648"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7648\/revisions"}],"predecessor-version":[{"id":8997,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7648\/revisions\/8997"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}