Vấn đề nhất:
An trang psycopg2-binary báo thác
[root@node1 Python-3.7.13]# pip install psycopg2-binary
WARNING:pipisconfiguredwithlocations that require TLS/SSL,however the ssl moduleinPythonisnotavailable.
WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,status=None))after connection broken by'SSLError( "Can't connect to HTTPS URL because the SSL moduleisnotavailable.")':/simple/psycopg2-binary/
WARNING:Retrying(Retry(total=3,connect=None,read=None,redirect=None,status=None))after connection broken by'SSLError( "Can't connect to HTTPS URL because the SSL moduleisnotavailable.")':/simple/psycopg2-binary/
WARNING:Retrying(Retry(total=2,connect=None,read=None,redirect=None,status=None))after connection broken by'SSLError( "Can't connect to HTTPS URL because the SSL moduleisnotavailable.")':/simple/psycopg2-binary/
WARNING:Retrying(Retry(total=1,connect=None,read=None,redirect=None,status=None))after connection broken by'SSLError( "Can't connect to HTTPS URL because the SSL moduleisnotavailable.")':/simple/psycopg2-binary/
WARNING:Retrying(Retry(total=0,connect=None,read=None,redirect=None,status=None))after connection broken by'SSLError( "Can't connect to HTTPS URL because the SSL moduleisnotavailable.")':/simple/psycopg2-binary/
Couldnotfetch URL https://pypi.org/simple/psycopg2-binary/:There was a problem confirming the ssl certificate:HTTPSConnectionPool(host='pypi.org',port=443):Max retries exceededwithurl:/simple/psycopg2-binary/(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))-skipping
ERROR:Couldnotfind a version that satisfies the requirement psycopg2-binary(fromversions:none)
ERROR:No matching distribution foundforpsycopg2-binary
WARNING:pipisconfiguredwithlocations that require TLS/SSL,however the ssl moduleinPythonisnotavailable.
Couldnotfetch URL https://pypi.org/simple/pip/:There was a problem confirming the ssl certificate:HTTPSConnectionPool(host='pypi.org',port=443):Max retries exceededwithurl:/simple/pip/(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))-skipping
Vấn đề nhất: Giải quyết phương pháp
[root@node1 Python-3.7.13]pip install psycopg2-binary-i http://mirrors.aliyun.com/pypi/simple/--trusted-host mirrors.aliyun.com
Lookinginindexes:http://mirrors.aliyun.com/pypi/simple/,http://mirrors.aliyun.com/pypi/simple
Collecting psycopg2-binary
Downloading http://mirrors.aliyun.com/pypi/packages/6f/ac/0cc0412f1710598537af8021a7c63334daaa8d3474d17133a6805bf54f5b/psycopg2_binary-2.9.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl(3.0MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━3.0/3.0MB16.2MB/s eta0:00:00
Installing collected packages:psycopg2-binary
Successfully installed psycopg2-binary-2.9.7
WARNING:Running pipasthe'root'user can resultinbroken permissionsandconflicting behaviourwiththe system package manager.Itisrecommended to use a virtual environment instead:https://pip.pypa.io/warnings/venv
WARNING:You are using pip version22.0.4;however,version23.2.1isavailable.
You should consider upgrading via the'/usr/local/python3/bin/python3.7 -m pip install --upgrade pip'command.
Vấn đề nhị:
python3.7 dĩ thượng bản bổn nhu yếu nhất cá tân đích y lại bao libffi-devel, hệ thống hoàn cảnh trung khuyết phạp giá cá bao
ModuleNotFoundError:No module named'_ctypes'
Vấn đề nhị: Giải quyết phương pháp
[root@node1 Python-3.7.13]# yum install libffi-devel -y
[root@node1 Python-3.7.13]# make install #Python3 an trang mục lục hạ trọng tân biên dịch an trang Python
[root@node1 Python-3.7.13]# pip install patroni[etcd] -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Vấn đề tam:
Tân Etcd tiết điểm, khải động thất bại vô pháp gia nhập đáo tập quần
Aug2323:00:59 localhost etcd: publish error: etcdserver: request timed out
Vấn đề tam: Giải quyết phương pháp san trừ tập quần hạ sở hữu tiết điểm đích sổ cư, sử tha trọng tân đồng bộ
[root@localhost ~]# systemctl start etcd
Jobforetcd.service failed because atimeoutwas exceeded. See"systemctl status etcd.service"and"journalctl -xe"fordetails.
[root@localhost ~]# cd /var/lib/etcd/
[root@localhost etcd]# ll
total0
drwx------3etcd etcd20Aug2323:04 pg2.etcd
[root@localhost etcd]# mv pg2.etcd/ /tmp/
[root@localhost etcd]# systemctl start etcd