码迷,mamicode.com
首页 > 系统相关 > 详细

linux安装集成环境lnmp

时间:2019-07-08 14:06:13      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:禁用   集成   start   config   article   oftp   输入   init   --   

下载

//下载
wget -c http://soft.vpser.net/lnmp/lnmp1.5-full.tar.gz
//解压
tar zxf lnmp1.5-full.tar.gz
//进入文件夹
cd lnmp1.5-full

开始安装

./install.sh lnmp

//选择数据库版本
You have 10 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.60 (Default)
3: Install MySQL 5.6.40
4: Install MySQL 5.7.22
5: Install MySQL 8.0.11
6: Install MariaDB 5.5.60
7: Install MariaDB 10.0.35
8: Install MariaDB 10.1.33
9: Install MariaDB 10.2.14
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9 or 0):

//输入mysql root密码 root
Please setup root password of MySQL.
Please enter:

//启用或禁用InnoDB存储引擎,默认y
Do you want to enable or disable the InnoDB Storage Engine?
Default enable,Enter your choice [Y/n]:

//选择php版本
You have 8 options for your PHP install.
1: Install PHP 5.2.17
2: Install PHP 5.3.29
3: Install PHP 5.4.45
4: Install PHP 5.5.38
5: Install PHP 5.6.36 (Default)
6: Install PHP 7.0.30
7: Install PHP 7.1.18
8: Install PHP 7.2.6
Enter your choice (1, 2, 3, 4, 5, 6, 7 or 8):


//内存分配器 默认不安装
You have 3 options for your Memory Allocator install.
1: Don·t install Memory Allocator. (Default)
2: Install Jemalloc
3: Install TCMalloc
Enter your choice (1, 2 or 3):

//按任意键安装…或按Ctrl+C取消
Press any key to install...or Press Ctrl+c to cancel

//漫长的等待,预计30分钟

命令

//nginx重启
service nginx restart
service nginx stop
//mysql
/bin/systemctl stop mysql.service
/bin/systemctl start mysql.service
//卸载lnmp 卸载的时候以下文件需要删除
  /usr/local/nginx
  /usr/local/mariadb
  /usr/local/php
  /etc/init.d/nginx
  /etc/init.d/mariadb
  /etc/init.d/php-fpm
  /usr/local/zend
  /etc/my.cnf
  /bin/lnmp

LNMP状态管理命令:

LNMP 1.2+状态管理: lnmp {start|stop|reload|restart|kill|status}
LNMP 1.2+各个程序状态管理: lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status}
LNMP 1.1状态管理: /root/lnmp {start|stop|reload|restart|kill|status}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PHP-FPM状态管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
Redis状态管理: /etc/init.d/redis {start|stop|restart|kill}

多PHP版本状态管理:
/etc/init.d/php-fpm5.5 {start|stop|quit|restart|reload|logrotate} 前面5.5为对应的PHP版本,其他版本自行替换。

如重启LNMP,1.2+输入命令:lnmp restart 即可;单独重启mysql:/etc/init.d/mysql restart 也可以 lnmp mysql restart ,两个是一样的。

LNMPA状态管理命令:

LNMPA 1.2+状态管理: lnmp {start|stop|reload|restart|kill|status}
LNMPA 1.2+各个程序状态管理: lnmp {httpd|mysql|mariadb|pureftpd} {start|stop|reload|restart|kill|status}
LNMPA1.1状态管理: /root/lnmpa {start|stop|reload|restart|kill|status}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
Apache状态管理:/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}

LAMP状态管理命令:

LAMP 1.2+状态管理: lnmp {start|stop|reload|restart|kill|status}
LAMP 1.2+各个程序状态管理: lnmp {httpd|mysql|mariadb|pureftpd} {start|stop|reload|restart|kill|status}
---------------------
作者:qq_35829951
来源:CSDN
原文:https://blog.csdn.net/qq_35829951/article/details/91872703

linux安装集成环境lnmp

标签:禁用   集成   start   config   article   oftp   输入   init   --   

原文地址:https://www.cnblogs.com/leuliu/p/11150456.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!