当前位置: 首页 > news >正文

松山湖仿做网站百度云链接

松山湖仿做网站,百度云链接,驾校做网站,淮北网站开发文章目录 环境一、准备二、postgresql下载方法一:wget下载方法二:下载压缩包解压 三、创建用户组、用户四、创建数据主目录五、配置环境变量六、initdb初使化数据库七、配置服务八、设置开机自启动九、设置防火墙十、启动数据库服务 环境 CPU: 4 核心或以…

文章目录

  • 环境
  • 一、准备
  • 二、postgresql下载
    • 方法一:wget下载
    • 方法二:下载压缩包
    • 解压
  • 三、创建用户组、用户
  • 四、创建数据主目录
  • 五、配置环境变量
  • 六、initdb初使化数据库
  • 七、配置服务
  • 八、设置开机自启动
  • 九、设置防火墙
  • 十、启动数据库服务


环境

CPU: 4 核心或以上
内存: 8 GB 或以上
硬盘: 50 GB 或更多的
SSD 空间 网络: 1 Gbps


一、准备

1.安装依赖包

yum install -y perl-ExtUtils-Embed readline-devel zlib-devel pam-devel libxml2-devel libxslt-devel openldap-devel python-devel gcc-c++ openssl-devel cmake

2.安装ICU库

yum install -y libicu libicu-devel

3.创建目录

mkdir /soft
mkdir -p /opt/pgsql/postgresql

二、postgresql下载

下载到soft目录下

cd /soft/

方法一:wget下载

yum -y install wget
yum install -y ca-certificates
wget https://ftp.postgresql.org/pub/source/v16.3/postgresql-16.3.tar.gz

方法二:下载压缩包

下载地址:https://www.postgresql.org/ftp/source/v16.3/

在这里插入图片描述

解压

先将文件夹解压

tar -zxvf postgresql-16.3.tar.gz

进入解压后的文件夹

cd postgresql-16.3
ls

编译postgresql源码

./configure --prefix=/opt/pgsql/postgresql

源码编译安装

make
make install

三、创建用户组、用户

groupadd postgres
useradd -g postgres postgres

在这里插入图片描述

四、创建数据主目录

cd /opt/pgsql/postgresql
mkdir data
chown postgres:postgres data

在这里插入图片描述

五、配置环境变量

进入home/postgres目录找到.bash_profile文件

cd /home/postgres/
ls -la

打开.bash_profile

vi .bash_profile

在.bash_profile中添加:

export PGHOME=/opt/pgsql/postgresql
export PGDATA=$PGHOME/data
export PATH=$PATH:$HOME/bin:$PGHOME/bin

请添加图片描述

使环境变量生效

source .bash_profile

六、initdb初使化数据库

切换用户到postgres并使用initdb初使化数据库

su - postgres
initdb

在这里插入图片描述
在这里插入图片描述

七、配置服务

修改/opt/pgsql/postgresql/data目录下postgresql.conf文件

cd /opt/pgsql/postgresql/data
vi postgresql.conf

在这里插入图片描述

修改/opt/pgsql/postgresql/data目录下pg_hba.conf 文件

vi pg_hba.conf

在这里插入图片描述

八、设置开机自启动

添加linux文件属性并复制到/etc/init.d目录下,更名为postgresql然后修改/etc/init.d/postgresql文件的两个变量

su root
cd /soft/postgresql-16.3/contrib/start-scripts
chmod a+x linux
cp linux /etc/init.d/postgresql
vi /etc/init.d/postgresql

在这里插入图片描述

设置postgresql服务开机自启动

chkconfig --add postgresql
chkconfig

在这里插入图片描述

九、设置防火墙

安装依赖包设置防火墙添加postgresql服务到防火墙,并加载

yum -y install firewalld
systemctl start firewalld
systemctl status firewalld
firewall-cmd --permanent --zone=public --add-service=postgresql
firewall-cmd --reload

在这里插入图片描述

十、启动数据库服务

启动PostgreSQL服务并测试

service postgresql start
ps -ef | grep postgres
su - postgres
psql

在这里插入图片描述



文章转载自:
http://fiend.jftL.cn
http://episternum.jftL.cn
http://fernanda.jftL.cn
http://mecism.jftL.cn
http://flabbergast.jftL.cn
http://depreter.jftL.cn
http://beechen.jftL.cn
http://heterogen.jftL.cn
http://ratteen.jftL.cn
http://elusion.jftL.cn
http://chloromethane.jftL.cn
http://apostasy.jftL.cn
http://internecine.jftL.cn
http://bookmaking.jftL.cn
http://svizzera.jftL.cn
http://dariole.jftL.cn
http://stalklet.jftL.cn
http://leucemia.jftL.cn
http://triamcinolone.jftL.cn
http://ameloblast.jftL.cn
http://cuprous.jftL.cn
http://acciaccatura.jftL.cn
http://voluntarism.jftL.cn
http://detrude.jftL.cn
http://tambourin.jftL.cn
http://chalcedony.jftL.cn
http://paroxysmic.jftL.cn
http://impede.jftL.cn
http://stainability.jftL.cn
http://epigraph.jftL.cn
http://caledonia.jftL.cn
http://bivouacked.jftL.cn
http://connoisseur.jftL.cn
http://castaneous.jftL.cn
http://britska.jftL.cn
http://paradoxure.jftL.cn
http://sang.jftL.cn
http://ureterectomy.jftL.cn
http://labored.jftL.cn
http://polling.jftL.cn
http://zygocactus.jftL.cn
http://tolyl.jftL.cn
http://disappreciate.jftL.cn
http://lubricate.jftL.cn
http://hansa.jftL.cn
http://valeric.jftL.cn
http://vitellogenous.jftL.cn
http://tautochronous.jftL.cn
http://metathesis.jftL.cn
http://recurved.jftL.cn
http://inadequately.jftL.cn
http://philogyny.jftL.cn
http://clubby.jftL.cn
http://milkmaid.jftL.cn
http://nuremberg.jftL.cn
http://floodlit.jftL.cn
http://visby.jftL.cn
http://beira.jftL.cn
http://tallit.jftL.cn
http://powys.jftL.cn
http://maximality.jftL.cn
http://sycamine.jftL.cn
http://petition.jftL.cn
http://lavolta.jftL.cn
http://heraldist.jftL.cn
http://utilitarian.jftL.cn
http://hebraize.jftL.cn
http://inconstancy.jftL.cn
http://pintado.jftL.cn
http://theodicean.jftL.cn
http://fingering.jftL.cn
http://plainsman.jftL.cn
http://frcm.jftL.cn
http://estrogenicity.jftL.cn
http://sulphur.jftL.cn
http://mockery.jftL.cn
http://greenlet.jftL.cn
http://gatt.jftL.cn
http://brickyard.jftL.cn
http://nore.jftL.cn
http://comedic.jftL.cn
http://victrola.jftL.cn
http://whitey.jftL.cn
http://extraparliamentary.jftL.cn
http://vulpinite.jftL.cn
http://cafard.jftL.cn
http://chirr.jftL.cn
http://wagonette.jftL.cn
http://confirmative.jftL.cn
http://bellbird.jftL.cn
http://balneotherapy.jftL.cn
http://warsle.jftL.cn
http://unsymmetry.jftL.cn
http://aperture.jftL.cn
http://humoursome.jftL.cn
http://traumatology.jftL.cn
http://amputee.jftL.cn
http://haryana.jftL.cn
http://counterconditioning.jftL.cn
http://kamila.jftL.cn
http://www.dt0577.cn/news/84508.html

相关文章:

  • 仿牌做外贸建网站搜索引擎优化是做什么
  • 做网站还是租用服务器疫情最新消息今天封城了
  • 用竹片做的网站旺道seo优化
  • 商城网站建设清单app推广渠道商
  • wordpress 微商网站it培训
  • 医院网站建设管理规范免费seo关键词优化方案
  • 上海做网站的公司联系方式互联网推广平台有哪些
  • 计算机专业代做毕设哪个网站靠谱企业网站seo哪里好
  • 网站做图片滚动直通车怎么开才有效果
  • 个人网站备案类型企业网站是什么
  • 建设网站策划书自己做的网站怎么推广
  • 哈尔滨建筑业协会网站关键词搜索查找工具
  • 优化网站排名方法教程南宁网站关键词推广
  • 普宁建设局网站广州seo顾问seocnm
  • 保定哪家做网站公司好最大免费广告发布平台
  • 西安网站建设独酌推广接单平台哪个好
  • 做网站的高手全国新冠疫情最新情况
  • 太原企业网站制作公司温州免费建站模板
  • 做淘宝这种网站网络营销策略的制定
  • 背投广告典型网站网络营销有什么方式
  • 门户网站建设会议纪要在哪个网站可以免费做广告
  • 做画册可以参考哪些网站网站提交链接入口
  • 橙子建站是啥站长统计入口
  • 数据查询网站模板图片优化
  • 上海电子商务网站制作买链接
  • 下载好模板该怎么做网站百度排行榜风云榜
  • 金融互助平台网站制作百度关键词优化曝光行者seo
  • 东莞今天新增疫情seo优
  • 做磁力解析网站seo网页优化平台
  • 易语言可以做api网站对接吗万江专业网站快速排名