# vi /etc/yum.conf
proxy=http://192.168.13.101:3128
# vi /etc/amazon-linux-extras.conf
export http_proxy=http://192.168.13.101:3128
export https_proxy=http://192.168.13.101:3128
# vi /etc/profile.d/proxy.sh
PROXY="http://192.168.13.101:3128"
export http_proxy=$PROXY
export HTTP_PROXY=$PROXY
export https_proxy=$PROXY
export HTTPS_PROXY=$PROXY
# cd /tmp
# wget http://repo.zabbix.com/zabbix/6.2/rhel/7/x86_64/zabbix-agent2-6.2.7-release1.el7.x86_64.rpm
# yum install zabbix-agent2-6.2.7-release1.el7.x86_64.rpm
# vi /etc/zabbix/zabbix_agent2.conf
# cd
# vi .rpmmacros
%_httpport 3128
%_httpproxy http://192.168.13.101
# amazon-linux-extras
63 postgresql14 available [ =stable ]
63 postgresql14 available [ =stable ]
# amazon-linux-extras install -y postgresql14
# yum install -y postgresql-server postgresql-devel
# psql -V
psql (PostgreSQL) 14.3
# postgresql-setup initdb
# systemctl start postgresql
# systemctl enable postgresql
# sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'password';"
# passwd postgres
# vi `find / -name pg_hba.conf`
#local all all peer
local all all trust
#host all all 127.0.0.1/32 ident
host all all 192.168.0.0/16 password# systemctl restart postgresql
# find / -name postgresql.conf
# vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
port = 5432
0 件のコメント:
コメントを投稿