服务器环境
IDC供应商:阿里云ECS
系统镜像:Ubuntu 18.04 64位
Linux系统版本:Ubuntu 18.04.2 LTS
Linux内核版本:Linux version 4.15.0-52-generic
集成环境版本:LNMP 1.6
MySQL版本:MySQL 8.0.13
PHP版本:PHP 7.3.6
内存分配器:Jemalloc
Apache版本:2.4.39
Nginx版本:1.16.0
第一步: 更新APT软件源
- sudo apt-get update
第二步: 安装Screen
- apt-get install screen
第三步:新建一个Screen
- screen -S lnmp
第四步: 下载并解压缩LNMP1.6源码包
- wget http://soft.vpser.net/lnmp/lnmp1.6.tar.gz -cO lnmp1.6.tar.gz && tar zxf lnmp1.6.tar.gz && cd lnmp1.6
第五步: 安装LNMPA架构环境
- ./install.sh lnmpa
第六步: 修改LNMP.Conf
- Download_Mirror='https://soft.vpser.net'
- Nginx_Modules_Options=''
- PHP_Modules_Options=''
- ##MySQL/MariaDB database directory##
- MySQL_Data_Dir='/home/data/mysql/var'
- MariaDB_Data_Dir='/home/data/mariadb/var'
- ##Default website home directory##
- Default_Website_Dir='/home/wwwroot/default'
- Enable_Nginx_Openssl='y'
- Enable_PHP_Fileinfo='y'
- Enable_Nginx_Lua='n'
- Enable_Swap='y'
第七步: 预设LNMPA配置并开始安装
- +------------------------------------------------------------------------+
- | A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux |
- +------------------------------------------------------------------------+
- | For more information please visit https://lnmp.org |
- +------------------------------------------------------------------------+
- You have 11 options for your DataBase install.
- 1: Install MySQL 5.1.73
- 2: Install MySQL 5.5.62 (Default)
- 3: Install MySQL 5.6.44
- 4: Install MySQL 5.7.26
- 5: Install MySQL 8.0.13
- 6: Install MariaDB 5.5.63
- 7: Install MariaDB 10.0.38
- 8: Install MariaDB 10.1.40
- 9: Install MariaDB 10.2.24
- 10: Install MariaDB 10.3.15
- 0: DO NOT Install MySQL/MariaDB
- Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 0): 5
- You will install MySQL 8.0.13
- ===========================
- Please setup root password of MySQL.
- Please enter: EvolChina9188
- MySQL root password: EvolChina9188
- ===========================
- Do you want to enable or disable the InnoDB Storage Engine?
- Default enable,Enter your choice [Y/n]: Y
- You will enable the InnoDB Storage Engine
- ===========================
- You have 9 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.40 (Default)
- 6: Install PHP 7.0.33
- 7: Install PHP 7.1.30
- 8: Install PHP 7.2.19
- 9: Install PHP 7.3.6
- Enter your choice (1, 2, 3, 4, 5, 6, 7, 8 or 9): 9
- You will install PHP 7.3.6
- ===========================
- 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): 2
- You will install JeMalloc
- ===========================
- Please enter Administrator Email Address: lxtac@lxtac.com
- ===========================
- Server Administrator Email: lxtac@lxtac.com
- ===========================
- ===========================
- You have 2 options for your Apache install.
- 1: Install Apache 2.2.34
- 2: Install Apache 2.4.39 (Default)
- Enter your choice (1 or 2): 2
- You will install Apache 2.4.39
- Press any key to install...or Press Ctrl+c to cancel
第八步: 安装Memcached分布式内存对象缓存系统
- root@Evol-Server:~/lnmp1.6# ./addons.sh install memcached
- +-----------------------------------------------------------------------+
- | Addons script for LNMP V1.6, Written by Licess |
- +-----------------------------------------------------------------------+
- | A tool to Install cache,optimizer,accelerator...addons for LNMP |
- +-----------------------------------------------------------------------+
- | For more information please visit https://lnmp.org |
- +-----------------------------------------------------------------------+
- Which memcached php extension do you choose:
- Install php-memcache,(Discuz x) please enter: 1
- Install php-memcached, please enter: 2
- Enter 1 or 2 (Default 1): 2
- You choose php-memcached
- ====== Installing memcached ======
- Press any key to start...or Press Ctrl+c to cancel
第九步: 安装ImageMagick图像处理扩展
- root@Evol-Server:~/lnmp1.6# ./addons.sh install imagemagick
- +-----------------------------------------------------------------------+
- | Addons script for LNMP V1.6, Written by Licess |
- +-----------------------------------------------------------------------+
- | A tool to Install cache,optimizer,accelerator...addons for LNMP |
- +-----------------------------------------------------------------------+
- | For more information please visit https://lnmp.org |
- +-----------------------------------------------------------------------+
- ====== Installing ImageMagic ======
- Press any key to start...or Press Ctrl+c to cancel
第十步: 安装Opcache PHP优化加速组件
- root@Evol-Server:~/lnmp1.6# ./addons.sh install opcache
- +-----------------------------------------------------------------------+
- | Addons script for LNMP V1.6, Written by Licess |
- +-----------------------------------------------------------------------+
- | A tool to Install cache,optimizer,accelerator...addons for LNMP |
- +-----------------------------------------------------------------------+
- | For more information please visit https://lnmp.org |
- +-----------------------------------------------------------------------+
- Install Opcache will auto uninstall eAccelerator if exists...
- ====== Installing zend opcache ======
- Press any key to start...or Press Ctrl+c to cancel
本文由 LXTAC 发布在 LXTAC,转载此文请保持文章完整性,并请附上文章来源(LXTAC)及本页链接。
原文链接:https://www.lxtac.com/server/1156.html
原文地址:https://blog.csdn.net/qiuziqiqi/article/details/95360019
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。