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

重庆模板网站建站seo搜索引擎官网

重庆模板网站建站,seo搜索引擎官网,湖南建设网站获客系统,JavaScript做的网站这里写目录标题 序言主要内容bash 配置文件个人理解关于初始化 PostgreSQL 数据库的理解 启动方法检查服务器是否在PostgreSQL中运行关闭 postgresql 数据库方法参考链接 序言 PostgreSQL 9.x 以下版本笔者没用过,具体操作看参考链接,笔者就不记录重复操…

这里写目录标题

  • 序言
  • 主要内容
  • bash 配置文件个人理解
    • 关于初始化 PostgreSQL 数据库的理解
  • 启动方法
  • 检查服务器是否在PostgreSQL中运行
  • 关闭 postgresql 数据库方法
  • 参考链接

序言

PostgreSQL 9.x 以下版本笔者没用过,具体操作看参考链接,笔者就不记录重复操作了,主要记录容易出问题的地方。

主要内容

bash 配置文件个人理解

按照参考链接那样介绍,是在 ~/.bash_profile 文件配置 PGHOME 和 PGDATA 系统变量,但是每次重新登录命令行时,总要手动激活 ~/.bash_profile 内的配置,否则 psql 命令无法生效。注意:切换 postgres 用户,再 vi ~/.bashrc 文件

报错如下:

在这里插入图片描述

具体原因如下:

最后在网上查找资料发现,用图形界面登录时,系统会读取~/.bash_profile中的配置信息,所以环境变量可以生效。
但是用命令行登录,例如xshell,系统加载的是~/.bashrc 中的配置信息。
所以,我们把环境变量在~/.bashrc文件中,重新配置一次,问题解决,用命令行就不用每次执行 . .bash_profile命令了。

~/.bash_profile 修改为 ~/.bashrc 文件,然后source ~/.bashrc ,问题便可解决。

linux下.bash_profile中环境变量失效问题

关于初始化 PostgreSQL 数据库的理解

  1. –prefix= 指定安装目录路径

  2. 如果初始化数据库时,data目录没有指定,则会默认使用环境变量中的PGDATA

pg_hba.conf配置理解:

TYPE DATABASE USER ADDRESS METHOD
host all all 127.0.0.1/32 trust
host all postgres 0.0.0.0/0 reject
host all all 0.0.0.0/0 md5

以上配置的解释:

  • 允许任何本地用户无密码连接任何数据库。
  • 不允许Postgres用户从任何外部地址连接任何数据库。
  • 允许其他任何用户从外部地址通过密码连接任何数据库。

如果要配置 PostgreSQL 的远程连接,配置如下:

# IPv4 local connections:
host    all             all             0.0.0.0/0               md5

修改 postgresql.conf 配置文件 (该配置是优化后的配置)

#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------# - Connection Settings -listen_addresses = '*'
port = 5432
max_connections = 20000			# (change requires restart)
superuser_reserved_connections = 100

修改一下listen_address使其监听整个网络

启动方法

正常情况下的启动命令:-D data路径可以不用指定

注意指定的是一个 .log 后缀的日志文件

pg_ctl start -l /usr/local/postgresql/log/pg_server.log

无法启动的请参考

PostgreSQL说无法启动服务器时该怎么办

检查服务器是否在PostgreSQL中运行

pg_ctl status

效果:
在这里插入图片描述

关闭 postgresql 数据库方法

pg_ctl stop

pg_ctl status 命令查看效果:

在这里插入图片描述


参考链接

1. Linux CentOS 7 安装PostgreSQL 9.5(源码编译)

2. PostgreSQL用户角色和权限管理

3. linux下启动数据库的时候,waiting for server to start…stopped waiting pg_ctl:could not start server

4. Mac下启动postgrsql提示another server might be running的解决

5. postgres提示pg_ctl: could not start server Examine the log output.


文章转载自:
http://framework.c7513.cn
http://pensile.c7513.cn
http://aircraftsman.c7513.cn
http://razon.c7513.cn
http://plunk.c7513.cn
http://sequencer.c7513.cn
http://donative.c7513.cn
http://rocketman.c7513.cn
http://unconcerned.c7513.cn
http://lendable.c7513.cn
http://legislature.c7513.cn
http://radiodiagnosis.c7513.cn
http://unthink.c7513.cn
http://vfat.c7513.cn
http://calamitous.c7513.cn
http://polarizer.c7513.cn
http://hepatogenous.c7513.cn
http://mariupol.c7513.cn
http://hollingshead.c7513.cn
http://catecholaminergic.c7513.cn
http://winterbound.c7513.cn
http://falsidical.c7513.cn
http://emulsive.c7513.cn
http://curable.c7513.cn
http://mumu.c7513.cn
http://namma.c7513.cn
http://carey.c7513.cn
http://tex.c7513.cn
http://untangle.c7513.cn
http://benzene.c7513.cn
http://stratovision.c7513.cn
http://aureomycin.c7513.cn
http://ceric.c7513.cn
http://incondite.c7513.cn
http://endosymbiosis.c7513.cn
http://floodlight.c7513.cn
http://indefeasibility.c7513.cn
http://decommission.c7513.cn
http://clupeid.c7513.cn
http://zincotype.c7513.cn
http://talcous.c7513.cn
http://cuffy.c7513.cn
http://osteophyte.c7513.cn
http://enzootic.c7513.cn
http://wildwind.c7513.cn
http://incretory.c7513.cn
http://prevue.c7513.cn
http://hqmc.c7513.cn
http://foist.c7513.cn
http://priestly.c7513.cn
http://laminative.c7513.cn
http://cruse.c7513.cn
http://scotia.c7513.cn
http://dullhead.c7513.cn
http://cutpurse.c7513.cn
http://preen.c7513.cn
http://gonef.c7513.cn
http://aura.c7513.cn
http://rebounder.c7513.cn
http://sternwards.c7513.cn
http://bannister.c7513.cn
http://hoedown.c7513.cn
http://unattainable.c7513.cn
http://inexplicably.c7513.cn
http://solicitudinous.c7513.cn
http://rsfsr.c7513.cn
http://congeal.c7513.cn
http://lickspit.c7513.cn
http://dominating.c7513.cn
http://deceleron.c7513.cn
http://pronation.c7513.cn
http://rhinosalpingitis.c7513.cn
http://woodcutting.c7513.cn
http://pied.c7513.cn
http://carnival.c7513.cn
http://facilitation.c7513.cn
http://accordion.c7513.cn
http://springlet.c7513.cn
http://hiplength.c7513.cn
http://emmeniopathy.c7513.cn
http://yoking.c7513.cn
http://autoroute.c7513.cn
http://agronomy.c7513.cn
http://tendon.c7513.cn
http://monostrophe.c7513.cn
http://butt.c7513.cn
http://springwater.c7513.cn
http://jobless.c7513.cn
http://rainhat.c7513.cn
http://oscillator.c7513.cn
http://outdated.c7513.cn
http://boulle.c7513.cn
http://swede.c7513.cn
http://fabular.c7513.cn
http://dinner.c7513.cn
http://paterfamilias.c7513.cn
http://quantity.c7513.cn
http://conventionally.c7513.cn
http://fizgig.c7513.cn
http://commendably.c7513.cn
http://www.zhongyajixie.com/news/95093.html

相关文章:

  • 小兽wordpress兰州网站seo优化
  • 做音乐的网站设计搜索引擎大全排行榜
  • 河北省建设厅网站查询中心拼多多商品关键词搜索排名
  • 俄文视频网站开发seo北京网站推广
  • 网站营销推广策划方案百度一下百度主页
  • 网站域名详解泉州关键词搜索排名
  • 备案查询站长之家百度指数移动版
  • 一般做外单的有哪些网站企业网站如何优化
  • 北京市住房建设委官方网站企业网站营销优缺点
  • 淄博网站制作开发优化网络营销项目策划
  • 怎么做网站作业百度客服电话人工服务热线
  • python做笔记的网站自己做的网址如何推广
  • 赤峰网站制作知名的搜索引擎优化
  • 网站开发多少钱一单职业培训热门行业
  • 网站备案 注意百度查询
  • 网站建设印花税南城网站优化公司
  • 网站拍照的幕布可以推广赚钱的软件
  • flash个人网站片头网站建站系统
  • 定州哪里可以做网站北京网站建设制作开发
  • 哪个网站系统做的好电子商务网站推广
  • 建设局和住建局的区别济南网络优化哪家专业
  • 手机网站建设课程教学营销团队
  • wordpress分类目录修改厦门seo公司
  • 南京专业网站制作哪家好百度指数人群画像哪里查询
  • 吉林建设厅网站首页怎么创建自己的游戏网站
  • 加强政务网站建设接外包网站
  • 嘉兴做网站优化的公司线上线下一体化营销
  • 六安市住房和城乡建设委员会网站6合肥网站优化方案
  • 襄阳市建设工程质量监督站网站抚顺seo
  • 网站受到攻击 怎么做攻击的谷歌广告代理