- 积分
- 9
- 威望
-
- 金钱
-
- 注册时间
- 2016-3-25
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
[root@instance-bxhnmxeb ~]# lnmp vhost add
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Please enter domain(example: www.lnmp.org): compucen.com
Your domain: compucen.com
Enter more domain name(example: lnmp.org *.lnmp.org): *.compucen.com
domain list: *.compucen.com
Please enter the directory for the domain: compucen.com
Default directory: /home/wwwroot/compucen.com: /home/wwwroot/life
Virtual Host Directory: /home/wwwroot/life
Allow Rewrite rule? (y/n) y
Please enter the rewrite of programme,
wordpress,discuzx,typecho,thinkphp,laravel,codeigniter,yii2 rewrite was exist.
(Default rewrite: other): wordpress
You choose rewrite: wordpress
Enable PHP Pathinfo? (y/n) y
Enable pathinfo.
Allow access log? (y/n) y
Enter access log filename(Default:compucen.com.log): life
You access log filename: life.log
Create database and MySQL user with same name (y/n) n
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...
Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/rewrite/wordpress.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
Reload service php-fpm done
--2019-08-07 13:34:31-- https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net (soft.vpser.net)... 101.37.67.17
Connecting to soft.vpser.net (soft.vpser.net)|101.37.67.17|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://202.115.33.13/soft/lib/acme.sh/latest.tar.gz [following]
--2019-08-07 13:34:31-- http://202.115.33.13/soft/lib/acme.sh/latest.tar.gz
Connecting to 202.115.33.13:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139601 (136K) [application/octet-stream]
Saving to: ‘latest.tar.gz’
100%[======================================>] 139,601 760KB/s in 0.2s
2019-08-07 13:34:31 (760 KB/s) - ‘latest.tar.gz’ saved [139601/139601]
[Wed Aug 7 13:34:31 CST 2019] It is recommended to install socat first.
[Wed Aug 7 13:34:31 CST 2019] We use socat for standalone server if you use sta ndalone mode.
[Wed Aug 7 13:34:31 CST 2019] If you don't use standalone mode, just ignore thi s warning.
[Wed Aug 7 13:34:31 CST 2019] Installing to /usr/local/acme.sh
[Wed Aug 7 13:34:31 CST 2019] Installed to /usr/local/acme.sh/acme.sh
[Wed Aug 7 13:34:31 CST 2019] Installing alias to '/root/.bashrc'
[Wed Aug 7 13:34:31 CST 2019] OK, Close and reopen your terminal to start using acme.sh
[Wed Aug 7 13:34:31 CST 2019] Installing alias to '/root/.cshrc'
[Wed Aug 7 13:34:31 CST 2019] Installing alias to '/root/.tcshrc'
[Wed Aug 7 13:34:31 CST 2019] Installing cron job
no crontab for root
no crontab for root
[Wed Aug 7 13:34:31 CST 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Wed Aug 7 13:34:32 CST 2019] OK
Redirecting to /bin/systemctl restart crond.service
Note: Forwarding request to 'systemctl enable crond.service'.
Starting create SSL Certificate use Let's Encrypt...
[Wed Aug 7 13:34:36 CST 2019] Create account key ok.
[Wed Aug 7 13:34:36 CST 2019] Registering account
[Wed Aug 7 13:34:41 CST 2019] Registered
[Wed Aug 7 13:34:41 CST 2019] ACCOUNT_THUMBPRINT='Zp2PiJpOYjcWKRLtSLE0_ASChGlQ'
[Wed Aug 7 13:34:41 CST 2019] Creating domain key
[Wed Aug 7 13:34:42 CST 2019] The domain key is here: /usr/local/nginx/conf/ssl /compucen.com/compucen.com.key
[Wed Aug 7 13:34:42 CST 2019] Multi domain='DNS:compucen.com,DNS:*.compucen.com '
[Wed Aug 7 13:34:42 CST 2019] Getting domain auth token for each domain
[Wed Aug 7 13:34:53 CST 2019] Getting webroot for domain='compucen.com'
[Wed Aug 7 13:34:53 CST 2019] Getting webroot for domain='*.compucen.com'
[Wed Aug 7 13:34:53 CST 2019] Error, can not get domain token entry *.compucen.com
[Wed Aug 7 13:34:53 CST 2019] The supported validation types are: dns-01 , but you specified: http-01
[Wed Aug 7 13:34:53 CST 2019] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: compucen.com
Home Directory: /home/wwwroot/life
Rewrite: wordpress
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
=>Let's Encrypt
================================================
[root@instance-bxhnmxeb ~]# lnmp vhost del
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
=======================================
Current Virtualhost:
Nginx Virtualhost list:
compucen.com
=======================================
Please enter domain you want to delete: compucen.com
========================================================
Domain: compucen.com has been deleted.
Website files will not be deleted for security reasons.
You need to manually delete the website files.
========================================================
[root@instance-bxhnmxeb ~]#
|
|