Poatgres配置安装pgagent

来源:这里教程网 时间:2026-03-14 19:44:20 作者:

安装cmake

# cd /home
# wget https://cmake.org/files/v3.16/cmake-3.16.0.tar.gz
# tar -zxvf cmake-3.16.0.tar.gz
# cd /home/cmake-3.16.0/
# sudo apt-get install -y g++
# sudo apt-get install -y libssl-dev
# ./bootstrap
# make
# make install

安装wxgtk

# sudo apt-get install -y python-wxgtk4.0
# sudo apt-get install -y boost*
# wget  
# mkdir -p /home/wxWidgets-3.1.3
# cd /home/wxWidgets-3.1.3
# vi ~/.profile
PATH=$PATH:$HOME/bin:/usr/local/wxWidgets-3.1.3/bin
export LD_LIBRARY_PATH=/usr/local/wxWidgets-3.1.3/lib:$LD_LIBRARY_PATH
# source ~/.profile
# sudo apt-get install -y gtk*
# ./configure --enable-shared=no --enable-unicode=yes --prefix=/usr/local/wxWidgets-3.1.3/
# make && make install

安装pgagent下载地址:https://git.postgresql.org/gitweb/

# cd /home
# rz
# tar -zxvf pgagent-8b7ec04.tar.gz
# cd /home/pgagent-8b7ec04
# source /home/postgres/.profile
# cmake ./
# make
# make install
postgres=# create extension pgagent ;
CREATE EXTENSION

$ pgagent  hostaddr=127.0.0.1  dbname=postgres user=postgres password=postgres

相关推荐