LNMP state commonly used management command detailed

Source: Internet
Author: User
Tags fpm memcached redis versions phpmyadmin

Lnmp State Management Command:
LNMP 1.2 State management: LNMP {start|stop|reload|restart|kill|status}
LNMP 1.2 program state management: LNMP {nginx|mysql| MARIADB|PHP-FPM|PUREFTPD} {Start|stop|reload|restart|kill|status}
Lnmp 1.1 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}

Lnmpa Status Management Command:
LNMPA 1.2 State management: LNMP {start|stop|reload|restart|kill|status}
LNMPA 1.2 Individual Program state management: LNMP {httpd|mysql|mariadb|pureftpd} {Start|stop|reload|restart|kill|status}
LNMPA1.1 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}

Lamp Status Management Command:
LAMP 1.2 State management: LNMP {start|stop|reload|restart|kill|status}
LAMP 1.2 Individual Program state management: LNMP {httpd|mysql|mariadb|pureftpd} {Start|stop|reload|restart|kill|status}

LNMP related Software installation directory
Nginx directory:/usr/local/nginx/
MySQL directory:/usr/local/mysql/
MySQL database directory:/usr/local/mysql/var /
Mariadb directory:/usr/local/mariadb/
mariadb Database directory:/usr/local/mariadb/var/
PHP Directory:/usr/local/php/
phpMyAdmin Directory: 0.9 version for/home/wwwroot/phpmyadmin/1.0 and later versions for/home/wwwroot/default/phpmyadmin/It is strongly recommended that this directory be renamed to its not easily guessed name. phpMyAdmin can download the new version of the replacement from the official website.
Default Web Site Directory: 0.9 version is/home/wwwroot/1.0 and later version is/home/wwwroot/default/
Nginx log directory:/home/wwwlogs/
/root/ Vhost.sh added virtual host configuration file directory:/usr/local/nginx/conf/vhost/
pureftpd directory:/usr/local/pureftpd/
pureftpd Web Admin directory: Version 0.9 is the/home/wwwroot/default/ftp/1.0 version of the/home/wwwroot/default/ftp/
Proftpd directory:/usr/local/proftpd/
Redis Directory:/ usr/local/redis/

LNMP Related configuration file location
Nginx master configuration (default virtual Host) file:/usr/local/nginx/conf/nginx.conf
Added virtual host configuration file:/usr/local/nginx/conf/vhost/domain name. conf
MySQL configuration file:/etc/my.cnf
PHP configuration file:/usr/local/php/etc/php.ini
PHP-FPM configuration file:/usr/local/php/etc/php-fpm.conf
PUREFTPD configuration file:/usr/local/pureftpd/pure-ftpd.conf
pureftpd mysql config file:/usr/local/pureftpd/pureftpd-mysql.conf
proftpd config file:/usr/local/proftpd/etc/proftpd.conf 1.2 and previous versions are/usr/local/proftpd/proftpd.conf
PROFTPD User profile:/usr/local/proftpd/etc/vhost/user name. conf
Redis configuration file:/usr/local/redis/etc/redis.conf

Lnmpa Related directory file location
Apache Directory:/usr/local/apache/
Apache configuration file:/usr/local/apache/conf/httpd.conf
Apache Virtual Host configuration file directory:/usr/local/apache/conf/vhost/
Apache Default Virtual Host configuration file:/usr/local/apache/conf/extra/httpd-vhosts.conf
Virtual Host configuration file name:/usr/local/apache/conf/vhost/domain name. conf

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.