HeavyFly 发表于 2017-7-25 17:04:02

lnmp1.4生成ssl证书失败,错误 python2.7 - setuptools pkg_resources pip wheel failed with e

追加证书
vps是阿里云
Creating virtual environment...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!


var/log目录下没有letsencrypt目录

HeavyFly 发表于 2017-7-25 17:05:50

root@iZ2ze4hv8cf5q27z013xvyZ:~# cd lnmp
root@iZ2ze4hv8cf5q27z013xvyZ:~/lnmp# lnmp ssl add
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            https://lnmp.org             |
+-------------------------------------------+
Please enter domain(example: www.lnmp.org): magicdream.top
Your domain: magicdream.top
Enter more domain name(example: lnmp.org *.lnmp.org): www.magicdream.top
domain list: www.magicdream.top
Please enter the directory for domain magicdream.top: /home/wwwroot/magicdream.top
Allow Rewrite rule? (y/n) y
Please enter the rewrite of programme,
wordpress,discuz,typecho,sablog,typecho rewrite was exist.
(Default rewrite: other): wordpress
You choose rewrite: wordpress
Allow access log? (y/n) n
Disable access log.
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 2
Please enter your email address: 邮箱...qvq不给看
It will be processed automatically.
You select the exist rewrite rule:/usr/local/nginx/conf/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......
/bin/certbot
index-url=http://mirrors.aliyun.com/pypi/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Sources
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Sources
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 Packages
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main i386 Packages
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Translation-en
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe amd64 Packages
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Translation-en
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Sources
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Sources
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 Packages
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 Packages
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Translation-en
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe amd64 Packages
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe i386 Packages
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Translation-en
Fetched 4,388 kB in 1s (2,214 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree      
Reading state information... Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.8).
openssl is already the newest version (1.0.2g-1ubuntu4.8).
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
Upgrading certbot-auto 0.15.0 to 0.16.0...
Replacing certbot-auto...
Creating virtual environment...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!

licess 发表于 2017-7-25 20:49:30

你系统上存在多个版本的python,virtualenv是 python3的,但是letsencrypt确是python2.7的
分别执行:
python -V
virtualenv -v
pip -V
dpkg -l|grep -E "python|virtualenv"
ls -l /usr/bin/python*
贴上来看一下

wfz 发表于 2017-7-31 21:30:50

请问,存在多版本的python怎么用这个ssl证书呢

licess 发表于 2017-8-1 09:21:18

回复 4# 的帖子

多python并不一定会有问题,只是有混乱时才会出错

wfz 发表于 2017-8-1 15:43:19

军哥请看下这是错误的信息
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/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......
Gracefully shutting down php-fpmdone
Starting php-fpmdone
You select the exist rewrite rule:/usr/local/nginx/conf/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......
/bin/certbot
index-url=http://mirrors.aliyun.com/pypi/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://mirrors.aliyuncs.com/ubuntu xenial InRelease
Get:2 http://mirrors.aliyuncs.com/ubuntu xenial-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu xenial InRelease
Get:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
Get:5 http://mirrors.aliyuncs.com/ubuntu xenial-updates InRelease
Get:6 http://mirrors.aliyuncs.com/ubuntu xenial-proposed InRelease
Get:7 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
Get:8 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease
Get:9 http://mirrors.aliyuncs.com/ubuntu xenial-backports InRelease
Get:10 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
Get:11 http://mirrors.aliyuncs.com/ubuntu xenial-security/main Sources
Get:12 http://mirrors.aliyuncs.com/ubuntu xenial-security/main i386 Packages
Get:13 http://mirrors.aliyun.com/ubuntu xenial-security/main Sources
Get:14 http://mirrors.aliyuncs.com/ubuntu xenial-security/main Translation-en
Get:15 http://mirrors.aliyuncs.com/ubuntu xenial-security/universe i386 Packages
Get:16 http://mirrors.aliyun.com/ubuntu xenial-security/main i386 Packages
Get:17 http://mirrors.aliyuncs.com/ubuntu xenial-security/universe Translation-en
Get:18 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main Sources
Get:19 http://mirrors.aliyun.com/ubuntu xenial-security/main Translation-en
Get:20 http://mirrors.aliyun.com/ubuntu xenial-security/universe i386 Packages
Get:21 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe Sources
Get:22 http://mirrors.aliyun.com/ubuntu xenial-security/universe Translation-en
Get:23 http://mirrors.aliyun.com/ubuntu xenial-updates/main Sources
Get:24 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse Sources
Get:25 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main i386 Packages
Get:26 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Sources
Get:27 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Sources
Get:28 http://mirrors.aliyun.com/ubuntu xenial-updates/main i386 Packages
Get:29 http://mirrors.aliyun.com/ubuntu xenial-updates/main Translation-en
Get:30 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main Translation-en
Get:31 http://mirrors.aliyun.com/ubuntu xenial-updates/universe i386 Packages
Get:32 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Translation-en
Get:33 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse i386 Packages
Get:34 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Translation-en
Get:35 http://mirrors.aliyun.com/ubuntu xenial-proposed/main Sources
Get:36 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted Sources
Get:37 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe Sources
Get:38 http://mirrors.aliyun.com/ubuntu xenial-proposed/main i386 Packages
Get:39 http://mirrors.aliyun.com/ubuntu xenial-proposed/main Translation-en
Get:40 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted i386 Packages
Get:41 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted Translation-en
Get:42 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe i386 Packages
Get:43 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe Translation-en
Get:44 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages
Get:45 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe Translation-en
Get:46 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse i386 Packages
Get:47 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse Translation-en
Get:48 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main Sources
Get:49 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted Sources
Get:50 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe Sources
Get:51 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main i386 Packages
Get:52 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main Translation-en
Get:53 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted i386 Packages
Get:54 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted Translation-en
Get:55 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe i386 Packages
Get:56 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe Translation-en
Fetched 7,027 kB in 3s (2,310 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.8).
openssl is already the newest version (1.0.2g-1ubuntu4.8).
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
Creating virtual environment...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: wfz7.com
Home Directory: /home/wwwroot/wfz7.com
Rewrite: wordpress
Enable log: no
Create database: no
Create ftp account: no
Enable SSL: yes
=>Let's Encrypt
================================================

wfz 发表于 2017-8-1 15:44:34

这是执行的您二楼的命令
Last login: Mon Jul 31 20:57:44 2017 from 42.238.184.195
root@iZ23ht66tpaZ:~# python -V
Python 2.7.12
root@iZ23ht66tpaZ:~# virtualenv -v
Running virtualenv with interpreter /usr/bin/python2
You must provide a DEST_DIR
Usage: virtualenv.py DEST_DIR

Options:
--version             show program's version number and exit
-h, --help            show this help message and exit
-v, --verbose         Increase verbosity.
-q, --quiet         Decrease verbosity.
-p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python2.5 will use the python2.5 interpreter
                        to create the new environment.The default is the
                        python2 interpreter on your path (e.g.
                        /usr/bin/python2)
--clear               Clear out the non-root install and start from scratch.
--no-site-packages    DEPRECATED. Retained only for backward compatibility.
                        Not having access to global site-packages is now the
                        default behavior.
--system-site-packages
                        Give the virtual environment access to the global
                        site-packages.
--always-copy         Always copy files rather than symlinking.
--unzip-setuptools    Unzip Setuptools when installing it.
--relocatable         Make an EXISTING virtualenv environment relocatable.
                        This fixes up scripts and makes all .pth files
                        relative.
--no-setuptools       Do not install setuptools in the new virtualenv.
--no-pip            Do not install pip in the new virtualenv.
--no-wheel            Do not install wheel in the new virtualenv.
--extra-search-dir=DIR
                        Directory to look for setuptools/pip distributions in.
                        This option can be used multiple times.

root@iZ23ht66tpaZ:~# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@iZ23ht66tpaZ:~# dpkg -l|grep -E "python|virtualenv"
iidh-python                        2.20151103ubuntu1.1                        all          Debian helper tools for packaging Python libraries and applications
iilibpython-all-dev:i386             2.7.11-1                                 i386         package depending on all supported Python development packages
iilibpython-dev:i386               2.7.11-1                                 i386         header files and a static library for Python (default)
iilibpython-stdlib:i386            2.7.11-1                                 i386         interactive high-level object-oriented language (default python version)
iilibpython2.7:i386                  2.7.12-1ubuntu0~16.04.1                  i386         Shared Python runtime library (version 2.7)
iilibpython2.7-dev:i386            2.7.12-1ubuntu0~16.04.1                  i386         Header files and a static library for Python (v2.7)
iilibpython2.7-minimal:i386          2.7.12-1ubuntu0~16.04.1                  i386         Minimal subset of the Python language (version 2.7)
iilibpython2.7-stdlib:i386         2.7.12-1ubuntu0~16.04.1                  i386         Interactive high-level object-oriented language (standard library, version 2.7)
iilibpython3-stdlib:i386             3.5.1-3                                    i386         interactive high-level object-oriented language (default python3 version)
iilibpython3.5:i386                  3.5.2-2ubuntu0~16.04.1                     i386         Shared Python runtime library (version 3.5)
iilibpython3.5-minimal:i386          3.5.2-2ubuntu0~16.04.1                     i386         Minimal subset of the Python language (version 3.5)
iilibpython3.5-stdlib:i386         3.5.2-2ubuntu0~16.04.1                     i386         Interactive high-level object-oriented language (standard library, version 3.5)
iipython                           2.7.11-1                                 i386         interactive high-level object-oriented language (default version)
iipython-all                         2.7.11-1                                 i386         package depending on all supported Python runtime versions
iipython-all-dev                     2.7.11-1                                 i386         package depending on all supported Python development packages
iipython-apt-common                  1.1.0~beta1build1                        all          Python interface to libapt-pkg (locales)
iipython-dev                         2.7.11-1                                 i386         header files and a static library for Python (default)
iipython-minimal                     2.7.11-1                                 i386         minimal subset of the Python language (default version)
iipython-pip                         8.1.1-2ubuntu0.4                           all          alternative Python package installer
iipython-pip-whl                     8.1.1-2ubuntu0.4                           all          alternative Python package installer
iipython-pkg-resources               20.7.0-1                                 all          Package Discovery and Resource Access using pkg_resources
iipython-setuptools                  20.7.0-1                                 all          Python Distutils Enhancements
iipython-virtualenv                  15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
iipython-wheel                     0.29.0-1                                 all          built-package format for Python
iipython2.7                        2.7.12-1ubuntu0~16.04.1                  i386         Interactive high-level object-oriented language (version 2.7)
iipython2.7-dev                      2.7.12-1ubuntu0~16.04.1                  i386         Header files and a static library for Python (v2.7)
iipython2.7-minimal                  2.7.12-1ubuntu0~16.04.1                  i386         Minimal subset of the Python language (version 2.7)
iipython3                            3.5.1-3                                    i386         interactive high-level object-oriented language (default python3 version)
iipython3-apt                        1.1.0~beta1build1                        i386         Python 3 interface to libapt-pkg
iipython3-chardet                  2.3.0-2                                    all          universal character encoding detector for Python3
iipython3-commandnotfound            0.3ubuntu16.04.2                           all          Python 3 bindings for command-not-found.
iipython3-dbus                     1.2.0-3                                    i386         simple interprocess messaging system (Python 3 interface)
iipython3-distupgrade                1:16.04.21                                 all          manage release upgrades
iipython3-gdbm:i386                  3.5.1-1                                    i386         GNU dbm database support for Python 3.x
iipython3-gi                         3.20.0-0ubuntu1                            i386         Python 3 bindings for gobject-introspection libraries
iipython3-minimal                  3.5.1-3                                    i386         minimal subset of the Python language (default python3 version)
iipython3-pkg-resources            20.7.0-1                                 all          Package Discovery and Resource Access using pkg_resources
iipython3-requests                   2.9.1-3                                    all          elegant and simple HTTP library for Python3, built for human beings
iipython3-six                        1.10.0-3                                 all          Python 2 and 3 compatibility library (Python 3 interface)
iipython3-update-manager             1:16.04.6                                  all          python 3.x module for update-manager
iipython3-urllib3                  1.13.1-2ubuntu0.16.04.1                  all          HTTP library with thread-safe connection pooling for Python3
iipython3-virtualenv               15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
iipython3.5                        3.5.2-2ubuntu0~16.04.1                     i386         Interactive high-level object-oriented language (version 3.5)
iipython3.5-minimal                  3.5.2-2ubuntu0~16.04.1                     i386         Minimal subset of the Python language (version 3.5)
iivirtualenv                         15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
root@iZ23ht66tpaZ:~# ls -l /usr/bin/python*
lrwxrwxrwx 1 root root       9 Dec 102015 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 Dec 102015 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3833132 Nov 192016 /usr/bin/python2.7
lrwxrwxrwx 1 root root      31 Nov 192016 /usr/bin/python2.7-config -> i386-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 Dec 102015 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root       9 Jun2 15:50 /usr/bin/python3 -> python3.5
-rwxr-xr-x 2 root root 4776224 Nov 182016 /usr/bin/python3.5
-rwxr-xr-x 2 root root 4776224 Nov 182016 /usr/bin/python3.5m
lrwxrwxrwx 1 root root      10 Jun2 15:50 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root      16 Dec 102015 /usr/bin/python-config -> python2.7-config
root@iZ23ht66tpaZ:~#

licess 发表于 2017-8-1 21:07:43

回复 7# 的帖子

可以尝试 apt-get purge python-virtualenv python3-virtualenv virtualenv
成功删除后再 pip install virtualenv

update 2017-8-2:解决方法完整操作步骤如下:
apt-get update
apt-get install python-pip -y
apt-get purge python-virtualenv python3-virtualenv virtualenv
pip install --upgrade pip
pip install virtualenv
编辑 /bin/lnmp 查找 /bin/certbot certonly替换为 /bin/certbot --no-bootstrap certonly
再重新运行 lnmp ssl add 添加域名就可以了

wfz 发表于 2017-8-2 11:55:52

回复 8# 的帖子

军哥,还是老样子,我系统阿里云Ubuntu 16.04.2 LTS 是不是这个问题呀

licess 发表于 2017-8-2 12:21:16

回复 9# 的帖子

反馈这问题的基本上都是阿里云的,其他的服务商的ubuntu 16.04 再怎么折腾都没法模拟出该问题,非生产环境的话可以pm 我ip和root密码我看一下

wfz 发表于 2017-8-2 14:37:18

回复 10# 的帖子

已经发您了短消息。。。

licess 发表于 2017-8-2 17:05:55

回复 11# 的帖子

首先pip肯定已经提示你升级了,你没按提示操作 pip install --upgrade pip
再按前面 8楼 操作后
编辑 /bin/lnmp 查找 /bin/certbot certonly替换为 /bin/certbot --no-bootstrap certonly
再重新运行 lnmp ssl add 添加域名就可以了

你的已经给你调整测试过了

wfz 发表于 2017-8-2 19:50:25

回复 12# 的帖子

谢军哥,pip那个是我看不懂,不知道怎么弄:loveliness:

bilibiliwowo 发表于 2017-11-22 12:32:08

你好。军哥。添加证书是不是,一定要先把域名解析到当前服务器吗??

licess 发表于 2017-11-22 13:57:29

回复 14# 的帖子

用letsencrypt的话时必须要,而且一定要完全生效后才能进行生成证书的操作
页: [1] 2
查看完整版本: lnmp1.4生成ssl证书失败,错误 python2.7 - setuptools pkg_resources pip wheel failed with e