VPS侦探论坛

 找回密码
 注册
查看: 4113|回复: 9

lnmp1.6 ssl失败

[复制链接]
发表于 2019-6-27 03:29:51 | 显示全部楼层 |阅读模式

本帖最后由 moyin 于 2019-6-27 03:34 编辑

/usr/bin/lnmp: line 1019: ./acme.sh: Permission denied
sed: can't read /usr/local/acme.sh/acme.sh: No such file or directory
Redirecting to /bin/systemctl restart crond.service
Note: Forwarding request to 'systemctl enable crond.service'.
/usr/bin/lnmp: line 1033: /usr/local/acme.sh/acme.sh.env: No such file or direct                  ory
Starting create SSL Certificate use Let's Encrypt...
/usr/bin/lnmp: line 1055: /usr/local/acme.sh/acme.sh: No such file or directory
Let's Encrypt SSL Certificate create failed!



CentOS Linux release 7.6.1810 (Core)
MariaDB 10.3



补充内容 (2019-6-27 09:51):
usr/local/acme.sh
没有这个

补充内容 (2019-6-27 11:00):
http://tmp.link/f/5d14312c46181

补充内容 (2019-6-27 11:00):
卸载lnmp 重装
还是这个问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-6-27 08:57:47 | 显示全部楼层


日志信息太少无法确定原因,发更完整的日志看一下
另外lnmp管理工具是在 /bin/lnmp 不是 /usr/bin/lnmp
是否自己做过改动
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-6-27 09:27:13 | 显示全部楼层

Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror-hk.koddos.net
* extras: mirror-hk.koddos.net
* updates: mirror-hk.koddos.net
Package iptables-services-1.4.21-28.el7.x86_64 already installed and latest version
Nothing to do
iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Add iptables service at system startup...
error reading information on service iptables: No such file or directory
Note: Forwarding request to 'systemctl enable iptables.service'.
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx...  done
Add mariadb service at system startup...
Starting mariadb (via systemctl):  [  OK  ]
Add php-fpm service at system startup...
Starting php-fpm  done
============================== Check install ==============================
Checking ...
Nginx: OK
MariaDB: OK
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V1.6 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /home/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password: n6fWdZReSFjAhlAN                          |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 32006) is running...
php-fpm is runing!
SUCCESS! MariaDB running (32377)
State      Recv-Q Send-Q Local Addressort               Peer Addressort              
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:22                       *:*                  
LISTEN     0      128         :::3306                    :::*                  
LISTEN     0      128         :::22                      :::*                  
Install lnmp takes 25 minutes.
Install lnmp V1.6 completed! enjoy it.


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-6-27 09:28:20 | 显示全部楼层



licess 发表于 2019-6-27 08:57
日志信息太少无法确定原因,发更完整的日志看一下
另外lnmp管理工具是在 /bin/lnmp 不是 /usr/bin/lnmp
是 ...

日志太大上传不了,全新安装的 没有改动过
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-6-27 09:30:27 | 显示全部楼层


# ss -ntl
State      Recv-Q Send-Q Local Addressort               Peer Addressort                       
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:80                       *:*
LISTEN     0      128          *:22                       *:*
LISTEN     0      128         :::3306                    :::*
LISTEN     0      128         :::22                      :::*
# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 :::3306                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN


# firewall-cmd --zone=public --list-ports
443/tcp 80/tcp 22/tcp 3306/tcp

军哥运维代购:http://shop63846532.taobao.com/

发表于 2019-6-27 14:55:45 | 显示全部楼层

moyin 发表于 2019-6-27 09:28
日志太大上传不了,全新安装的 没有改动过

完整的日志不是安装日志是你首次添加ssl时的返回信息
 楼主| 发表于 2019-6-27 15:01:35 | 显示全部楼层

本帖最后由 moyin 于 2019-6-27 15:02 编辑
licess 发表于 2019-6-27 14:55
完整的日志不是安装日志是你首次添加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...

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-06-27 14:10:20--  https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net (soft.vpser.net)... 50.93.201.152, 2600:3c01::f03c:91ff                                                                                                             :fe92:1a06
Connecting to soft.vpser.net (soft.vpser.net)|50.93.201.152|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139601 (136K) [application/octet-stream]
Saving to: ‘latest.tar.gz’

100%[======================================>] 139,601      420KB/s   in 0.3s

2019-06-27 14:10:21 (420 KB/s) - ‘latest.tar.gz’ saved [139601/139601]

/usr/bin/lnmp: line 1019: ./acme.sh: Permission denied
sed: can't read /usr/local/acme.sh/acme.sh: No such file or directory
Redirecting to /bin/systemctl restart crond.service
Note: Forwarding request to 'systemctl enable crond.service'.
/usr/bin/lnmp: line 1033: /usr/local/acme.sh/acme.sh.env: No such file or direct                                                                                                             ory
Starting create SSL Certificate use Let's Encrypt...
/usr/bin/lnmp: line 1055: /usr/local/acme.sh/acme.sh: No such file or directory
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: www.xxxx.com
Home Directory: /home/wwwroot/www.xxxx.com
Rewrite: wordpress
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-6-27 15:05:41 | 显示全部楼层

licess 发表于 2019-6-27 14:55
完整的日志不是安装日志是你首次添加ssl时的返回信息

卸载lnmp 重装好几次了 一直这样
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-6-27 15:38:04 | 显示全部楼层

licess 发表于 2019-6-27 14:55
完整的日志不是安装日志是你首次添加ssl时的返回信息

latest.tar.gz
找不到 也没解压
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-6-27 16:42:12 | 显示全部楼层



moyin 发表于 2019-6-27 15:01
Add SSL Certificate (y/n) y
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create  ...

lnmp的管理脚本确实不是这个 /usr/bin/lnmp  路径
分别
ln -lh /usr/bin/lnmp
ln -lh /bin/lnmp 看一下
也可以手动尝试安装一下
wget https://soft.vpser.net/lib/acme.sh/latest.tar.gz
tar zxf latest.tar.gz
cd acme.sh-*
./acme.sh --install --log --home /usr/local/acme.sh --certhome /usr/local/nginx/conf/ssl

你是要root用户还是普通用户运行的?

安装脚本都是自带删除的,执行完去查看是肯定没有的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 15:29 , Processed in 0.028544 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表