Update python compile
This commit is contained in:
parent
e20af6bc35
commit
11e360c09f
|
@ -34,12 +34,12 @@ sudo adduser -r -s /usr/sbin/nologin postgres
|
|||
初始化数据库:
|
||||
|
||||
```bash
|
||||
sudo -u postgres initdb /data/pg/main
|
||||
sudo -u postgres initdb /data/pg/master
|
||||
```
|
||||
|
||||
启动服务:
|
||||
|
||||
```bash
|
||||
sudo -u postgres pg_ctl -D main -l main.log start
|
||||
sudo -u postgres pg_ctl -D master -l master.log start
|
||||
```
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
# Python 高版本编译安装
|
||||
|
||||
首先配置安装路径
|
||||
|
||||
```bash
|
||||
./configure --prefix=/usr/local/Python-3.12.1 --enable-optimizations
|
||||
```
|
||||
|
||||
然后编译安装
|
||||
|
||||
```bash
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
Loading…
Reference in New Issue