Update python compile

This commit is contained in:
lzhdev 2023-12-30 10:18:05 +08:00
parent e20af6bc35
commit 11e360c09f
2 changed files with 17 additions and 2 deletions

View File

@ -34,12 +34,12 @@ sudo adduser -r -s /usr/sbin/nologin postgres
初始化数据库: 初始化数据库:
```bash ```bash
sudo -u postgres initdb /data/pg/main sudo -u postgres initdb /data/pg/master
``` ```
启动服务: 启动服务:
```bash ```bash
sudo -u postgres pg_ctl -D main -l main.log start sudo -u postgres pg_ctl -D master -l master.log start
``` ```

15
article/python.md Normal file
View File

@ -0,0 +1,15 @@
# Python 高版本编译安装
首先配置安装路径
```bash
./configure --prefix=/usr/local/Python-3.12.1 --enable-optimizations
```
然后编译安装
```bash
make
sudo make install
```