微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

LNMPA1.6部署记录(Ubuntu)

服务器环境


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软件源

  1. sudo apt-get update

第二步: 安装Screen

  1. apt-get install screen

第三步:新建一个Screen

  1. screen -S lnmp

第四步: 下载并解压缩LNMP1.6源码包

  1. 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架构环境

  1. ./install.sh lnmpa

第六步: 修改LNMP.Conf

  1. Download_Mirror='https://soft.vpser.net'
  2. Nginx_Modules_Options=''
  3. PHP_Modules_Options=''
  4. ##MysqL/MariaDB database directory##
  5. MysqL_data_dir='/home/data/MysqL/var'
  6. MariaDB_data_dir='/home/data/mariadb/var'
  7. ##Default website home directory##
  8. Default_Website_Dir='/home/wwwroot/default'
  9. Enable_Nginx_Openssl='y'
  10. Enable_PHP_Fileinfo='y'
  11. Enable_Nginx_Lua='n'
  12. Enable_Swap='y'

第七步: 预设LNMPA配置并开始安装

  1. +------------------------------------------------------------------------+
  2. | A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux |
  3. +------------------------------------------------------------------------+
  4. | For more @R_653_4045@ion please visit https://lnmp.org |
  5. +------------------------------------------------------------------------+
  6. You have 11 options for your DataBase install.
  7. 1: Install MysqL 5.1.73
  8. 2: Install MysqL 5.5.62 (Default)
  9. 3: Install MysqL 5.6.44
  10. 4: Install MysqL 5.7.26
  11. 5: Install MysqL 8.0.13
  12. 6: Install MariaDB 5.5.63
  13. 7: Install MariaDB 10.0.38
  14. 8: Install MariaDB 10.1.40
  15. 9: Install MariaDB 10.2.24
  16. 10: Install MariaDB 10.3.15
  17. 0: DO NOT Install MysqL/MariaDB
  18. Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 0): 5
  19. You will install MysqL 8.0.13
  20. ===========================
  21. Please setup root password of MysqL.
  22. Please enter: EvolChina9188
  23. MysqL root password: EvolChina9188
  24. ===========================
  25. Do you want to enable or disable the InnoDB Storage Engine?
  26. Default enable,Enter your choice [Y/n]: Y
  27. You will enable the InnoDB Storage Engine
  28. ===========================
  29. You have 9 options for your PHP install.
  30. 1: Install PHP 5.2.17
  31. 2: Install PHP 5.3.29
  32. 3: Install PHP 5.4.45
  33. 4: Install PHP 5.5.38
  34. 5: Install PHP 5.6.40 (Default)
  35. 6: Install PHP 7.0.33
  36. 7: Install PHP 7.1.30
  37. 8: Install PHP 7.2.19
  38. 9: Install PHP 7.3.6
  39. Enter your choice (1, 2, 3, 4, 5, 6, 7, 8 or 9): 9
  40. You will install PHP 7.3.6
  41. ===========================
  42. You have 3 options for your Memory Allocator install.
  43. 1: Don't install Memory Allocator. (Default)
  44. 2: Install Jemalloc
  45. 3: Install tcmalloc
  46. Enter your choice (1, 2 or 3): 2
  47. You will install JeMalloc
  48. ===========================
  49. Please enter Administrator Email Address: [email protected]
  50. ===========================
  51. Server Administrator Email: [email protected]
  52. ===========================
  53. ===========================
  54. You have 2 options for your Apache install.
  55. 1: Install Apache 2.2.34
  56. 2: Install Apache 2.4.39 (Default)
  57. Enter your choice (1 or 2): 2
  58. You will install Apache 2.4.39
  59.  
  60. Press any key to install...or Press Ctrl+c to cancel

第八步: 安装Memcached分布式内存对象缓存系统

  1. root@Evol-Server:~/lnmp1.6# ./addons.sh install memcached
  2.  
  3. +-----------------------------------------------------------------------+
  4. | Addons script for LNMP V1.6, Written by Licess |
  5. +-----------------------------------------------------------------------+
  6. | A tool to Install cache,optimizer,accelerator...addons for LNMP |
  7. +-----------------------------------------------------------------------+
  8. | For more @R_653_4045@ion please visit https://lnmp.org |
  9. +-----------------------------------------------------------------------+
  10. Which memcached PHP extension do you choose:
  11. Install PHP-memcache,(discuz x) please enter: 1
  12. Install PHP-memcached, please enter: 2
  13. Enter 1 or 2 (Default 1): 2
  14. You choose PHP-memcached
  15. ====== Installing memcached ======
  16.  
  17. Press any key to start...or Press Ctrl+c to cancel

第九步: 安装ImageMagick图像处理扩展

  1. root@Evol-Server:~/lnmp1.6# ./addons.sh install imagemagick
  2.  
  3. +-----------------------------------------------------------------------+
  4. | Addons script for LNMP V1.6, Written by Licess |
  5. +-----------------------------------------------------------------------+
  6. | A tool to Install cache,optimizer,accelerator...addons for LNMP |
  7. +-----------------------------------------------------------------------+
  8. | For more @R_653_4045@ion please visit https://lnmp.org |
  9. +-----------------------------------------------------------------------+
  10. ====== Installing ImageMagic ======
  11.  
  12. Press any key to start...or Press Ctrl+c to cancel

第十步: 安装Opcache PHP优化加速组件

  1. root@Evol-Server:~/lnmp1.6# ./addons.sh install opcache
  2.  
  3. +-----------------------------------------------------------------------+
  4. | Addons script for LNMP V1.6, Written by Licess |
  5. +-----------------------------------------------------------------------+
  6. | A tool to Install cache,optimizer,accelerator...addons for LNMP |
  7. +-----------------------------------------------------------------------+
  8. | For more @R_653_4045@ion please visit https://lnmp.org |
  9. +-----------------------------------------------------------------------+
  10. Install Opcache will auto uninstall eAccelerator if exists...
  11. ====== Installing zend opcache ======
  12.  
  13. Press any key to start...or Press Ctrl+c to cancel

本文由 LXTAC 发布在 LXTAC,转载此文请保持文章完整性,并请附上文章来源(LXTAC)及本页链接
原文链接:https://www.lxtac.com/server/1156.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐