命令行添加域名:

lnmp vhost add

①输入域名:

Please enter domain(example: www.lnmp.org): demo.ramins.cn

②添加更过域名:

Enter more domain name(example: lnmp.org *.lnmp.org):(直接回车)

③默认根目录:

Default directory: /home/wwwroot/demo.ramins.cn:(直接回车)

④是否允许创建日志:

Allow access log? (y/n): y

You access log filename: demo.ramins.cn-access_log

⑤请输入你的邮箱:

Please enter Administrator Email Address: (直接回车)

Administrator Email Address will set to webmaster@example.com!

⑥是否创建数据库:

Create database and MySQL user with same name (y/n): demo

⑦是否添加SSL证书:

Add SSL Certificate (y/n) y

1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key

Enter 1 or 2: 2

It will be processed automatically.
Press any key to start create virtul host... (按任意键创建SSL证书)

。。。。。。

项目环境安装成功(配置如下):

================================================
Virtualhost infomation:
Your domain: demo.ramins.cn
Home Directory: /home/wwwroot/demo.ramins.cn
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
================================================