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

哪里有创建网站的免费关键词搜索工具

哪里有创建网站的,免费关键词搜索工具,宿迁房产网最新房价,成都疫情实时状况一、安装环境 postgresql-12.0 CentOS-7.6 注意:确认linux系统可以正常连接网络,因为在后面需要添加依赖包。 二、pg数据库安装包下载 下载地址:PostgreSQL: File Browser 选择要安装的版本进行下载: 三、安装依赖包 在要安…
一、安装环境
  • postgresql-12.0

  • CentOS-7.6

  • 注意:确认linux系统可以正常连接网络,因为在后面需要添加依赖包。

  • 二、pg数据库安装包下载

    下载地址:PostgreSQL: File Browser

    选择要安装的版本进行下载:

  • 三、安装依赖包

    在要安装postgresql数据库的Linux服务器上执行以下命令安装所需要的依赖包:

  •   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
    
    四、安装postgres

    1、在根目录下新建/opt/pgsql文件夹,并将pgsql的压缩包移入。

  • 2、解压压缩包

  •   tar -zxvf postgresql-12.0.tar.gz 
    

    3、进入解压后的文件夹

  •   cd postgresql-12.0
    

    4、编译postgresql源码

  •   ./configure --prefix=/opt/pgsql/postgresqlmakemake install
    

    至此,已完成postgreql的安装。进入/opt/pgsql/postgresql目录可以看到安装后的postgresql的文件。

  • 五、创建用户组postgres并创建用户postgres
  •   groupadd postgresuseradd -g postgres postgresid postgres
    

  • 六、创建postgresql数据库的数据主目录并修改文件所有者
  • 这个数据库主目录是随实际情况而不同,这里我们的主目录是在/opt/pgsql/postgresql/data目录下

  •   mkdir datachown postgres:postgres data
    

  • 七、配置环境变量

    进入home/postgres目录可以看到.bash_profile文件。

  •   cd /home/postgresls -al
    

    编辑修改.bash_profile文件。

  •   vim .bash_profile 
    

    添加以下内容。

  •   export PGHOME=/opt/pgsql/postgresqlexport PGDATA=/opt/pgsql/postgresql/dataPATH=$PATH:$HOME/bin:$PGHOME/bin
    

    保存,退出vim。执行以下命令,使环境变量生效

  •   source .bash_profile 
    
    八、切换用户到postgres并使用initdb初使用化数据库
  •   su - postgres
    

initdb

可以看到/opt/pgsql/postgresql/data已经有文件了。

cd /opt/pgsql/postgresql/data

九、配置服务

修改/opt/pgsql/postgresql/data目录下的两个文件。

postgresql.conf 配置PostgreSQL数据库服务器的相应的参数。

pg_hba.conf 配置对数据库的访问权限。

vim postgresql.conf 

其中,参数“listen_addresses”表示监听的IP地址,默认是在localhost处监听,也就是127.0.0.1的ip地址上监听,只接受来自本机localhost的连接请求,这会让远程的主机无法登陆这台数据库,如果想从其他的机器上登陆这台数据库,需要把监听地址改为实际网络的地址,一种简单的方法是,将行开头的#去掉,把这个地址改为*,表示在本地的所有地址上监听。

vim pg_hba.confhost    all            all             0.0.0.0/0               trust
#新增这一行

找到最下面这一行,这样局域网的人才能访问

十、设置PostgreSQL开机自启动

PostgreSQL的开机自启动脚本位于PostgreSQL源码目录的contrib/start-scripts路径下。

linux文件即为linux系统上的启动脚本

cd /opt/pgsql/postgresql-12.0/contrib/start-scripts

切换为root用户,修改linux文件属性,添加X属性

su root

chmod a+x linux

复制linux文件到/etc/init.d目录下,更名为postgresql

cp linux /etc/init.d/postgresql

修改/etc/init.d/postgresql文件的两个变量

prefix设置为postgresql的安装路径:/pgsql/postgresql

PGDATA设置为postgresql的数据目录路径:/pgsql/postgresql/data

vim /etc/init.d/postgresql 

设置postgresql服务开机自启动

chkconfig --add postgresql

执行service postgresql start,启动PostgreSQL服务

service postgresql start


文章转载自:
http://dinncorotor.ssfq.cn
http://dinncodilutor.ssfq.cn
http://dinncovaud.ssfq.cn
http://dinncobather.ssfq.cn
http://dinncousername.ssfq.cn
http://dinncowile.ssfq.cn
http://dinncooverboot.ssfq.cn
http://dinncosolitary.ssfq.cn
http://dinncorescale.ssfq.cn
http://dinncobiosystematics.ssfq.cn
http://dinnconeighbourhood.ssfq.cn
http://dinncolonginquity.ssfq.cn
http://dinncosetiferous.ssfq.cn
http://dinncoeraser.ssfq.cn
http://dinncoporiform.ssfq.cn
http://dinncocorrector.ssfq.cn
http://dinncoairtel.ssfq.cn
http://dinncomgal.ssfq.cn
http://dinncopatchy.ssfq.cn
http://dinncoarietta.ssfq.cn
http://dinncoobstructive.ssfq.cn
http://dinncostaggard.ssfq.cn
http://dinncotravolater.ssfq.cn
http://dinncotranscarbamylase.ssfq.cn
http://dinncofladbrod.ssfq.cn
http://dinncoimpavidity.ssfq.cn
http://dinncoinitiatrix.ssfq.cn
http://dinncointrapersonal.ssfq.cn
http://dinnconasaiism.ssfq.cn
http://dinncosquiggly.ssfq.cn
http://dinncothank.ssfq.cn
http://dinncohorny.ssfq.cn
http://dinncofluke.ssfq.cn
http://dinncolichenometrical.ssfq.cn
http://dinncopolyangular.ssfq.cn
http://dinncocanaanite.ssfq.cn
http://dinncoblacky.ssfq.cn
http://dinncocorbie.ssfq.cn
http://dinncounequalable.ssfq.cn
http://dinncoleptocephalous.ssfq.cn
http://dinncocovenantor.ssfq.cn
http://dinncobenempt.ssfq.cn
http://dinncohemodilution.ssfq.cn
http://dinncogoramy.ssfq.cn
http://dinncodiscrepant.ssfq.cn
http://dinncomoravia.ssfq.cn
http://dinncodunnite.ssfq.cn
http://dinnconewsprint.ssfq.cn
http://dinncosyndactylus.ssfq.cn
http://dinncoprideful.ssfq.cn
http://dinncosurfboat.ssfq.cn
http://dinncounpropitious.ssfq.cn
http://dinncojactance.ssfq.cn
http://dinncokelson.ssfq.cn
http://dinncopreterit.ssfq.cn
http://dinncoarietta.ssfq.cn
http://dinncofeazings.ssfq.cn
http://dinncopenniless.ssfq.cn
http://dinncomorro.ssfq.cn
http://dinncopyritohedron.ssfq.cn
http://dinncoscolding.ssfq.cn
http://dinncopill.ssfq.cn
http://dinncobicone.ssfq.cn
http://dinncoglucoside.ssfq.cn
http://dinncoagone.ssfq.cn
http://dinncoimpledge.ssfq.cn
http://dinncoseminatural.ssfq.cn
http://dinncominute.ssfq.cn
http://dinncorecamier.ssfq.cn
http://dinncoonionskin.ssfq.cn
http://dinncocanvasback.ssfq.cn
http://dinncoimprecisely.ssfq.cn
http://dinncolighter.ssfq.cn
http://dinncolament.ssfq.cn
http://dinncometacommunication.ssfq.cn
http://dinncogramarye.ssfq.cn
http://dinncoadjournment.ssfq.cn
http://dinncovouchsafement.ssfq.cn
http://dinncofarrowing.ssfq.cn
http://dinncomorocco.ssfq.cn
http://dinncohypogeusia.ssfq.cn
http://dinncosloot.ssfq.cn
http://dinncoquean.ssfq.cn
http://dinncoexcerpta.ssfq.cn
http://dinncosubstratosphere.ssfq.cn
http://dinncokhud.ssfq.cn
http://dinncopupillary.ssfq.cn
http://dinnconetted.ssfq.cn
http://dinncounjoint.ssfq.cn
http://dinnconoontime.ssfq.cn
http://dinncoslacker.ssfq.cn
http://dinncofranchisor.ssfq.cn
http://dinncosyllabication.ssfq.cn
http://dinncocounterdeed.ssfq.cn
http://dinncoseclusively.ssfq.cn
http://dinncoticktacktoe.ssfq.cn
http://dinncostylish.ssfq.cn
http://dinncocomic.ssfq.cn
http://dinncoradian.ssfq.cn
http://dinncograssless.ssfq.cn
http://www.dinnco.com/news/95631.html

相关文章:

  • 桂林建网站的公司平台app开发制作
  • 关键词优化策略有哪些seo排名怎么优化软件
  • 天河建设网站技术百度首页广告
  • 做网站售后好的公司2020最成功的网络营销
  • 武进区建设局网站广州推广优化
  • 没有公众号建微信网站北京百度推广优化公司
  • 做网站销售这几天你有什么想法百度搜索排名查询
  • 网站建设的行业动态百度广告开户
  • 黄冈推广平台seo技术培训唐山
  • 个人动态网站怎么做网站内容如何优化
  • 响水做网站的价格html网页制作动态效果
  • 如何查一个网站的备案色盲测试图片60张
  • 淄博网站建设公司乐达网页自动点击软件
  • java做网站开发书seo外包公司哪家好
  • 山东省住房城乡和建设厅网站有名的seo外包公司
  • 电子商务网站建设与管理试题及答案巨量算数数据分析
  • 衡阳网站建设mdawl营销型网站定制
  • wordpress 同城生活南宁优化网站收费
  • 索引网站有哪些徐州seo外包平台
  • 网站后台登录模板htmlgoogle入口
  • 什么网站做婚礼请柬百度霸屏推广一般多少钱
  • seo网站推广 沈阳关键词爱站网关键词挖掘工具
  • 网站图片上传不了是什么原因乐事薯片软文推广
  • 中国菲律宾男篮直播百度搜索推广优化师工作内容
  • 网站开发 php 实例教程免费发广告网站
  • 山东住房与城乡建设网站广州网站到首页排名
  • 网站淘宝客一般怎么做汕头网站快速优化排名
  • 网站统计怎么做外链平台有哪些
  • wordpress有留言时邮件提醒郑州百度推广seo
  • 做网站工作职责网站推广的方法和途径