Mac安装postgresql和卸载PostgreSQL】的更多相关文章

1.homebrew安装 brew install postgresql 2.初始化 initdb /usr/local/var/postgres 3.创建数据库及查看数据库 (1)先创建db. createdb (2)进入控制台 psql (3)查看现有数据库 \l 4.创建用户 CREATE USER postgres WITH PASSWORD 'XXXXXX'; 5.删除默认生成的数据库 DROP DATABASE postgres; 6.创建postgres用户的postgres数据库…
这几天ytkah正在测试Odoo,而Odoo12一定要PGSQL10否则安装数据库的时候会出错,所以就直接安装gpsql10.首先卸载旧版本postgresql yum remove postgresql* 然后开始安装10版本 yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm yum install postgresql1…
1.卸载旧版本postgresql $ yum remove postgresql* 2.更新yum $ yum update 3.下载pgdg-centos92-9.2-6.noarch.rpm,或者到http://yum.pgrpms.org/reporpms/选择相应版本 wget http://yum.pgrpms.org/9.2/redhat/rhel-5-x86_64/pgdg-centos92-9.2-6.noarch.rpm 4. rpm -ivh pgdg-centos92-.…
卸载postgresql数据库有两种方法,第一种一个个包卸载,第二种全部卸载.做这些之前请先做好备份,以防意外! 1.1.查询出postgres数据库,用命令rpm -qa |grep postgres [root@root ~]# rpm -qa |grep postgres //下面是已经安装的数据库 postgresql10-libs-10.6-1PGDG.rhel7.x86_64 postgresql-server-9.2.24-1.el7_5.x86_64 postgresql10-s…
brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便 brew类似ubuntu系统下的apt-get的功能 安装brew brew 的官方网站: http://brew.sh/   在官方网站对brew的用法进行了详细的描述 安装方法:  在Mac中打开Termal:  输入命令: ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)&quo…
环境:Ubuntu Xenial (16.04)     !!! CentOS 参考这里 #安装 PostgreSQL sudo apt-get updatesudo apt-get upgradeapt-get install htop wget software-properties-common 默认: sudo apt-get install postgresql (9.5版本) For any Ubuntu version you need to can do this by the…
1.安装 访问https://brew.sh,copy图中的命令到命令行中,进行下载安装 2.卸载 官方版本的卸载: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"…
请先看完之后再操作 一.用pecl安装swoole(没有安装起来) 2018年4月,由于homebrew的变动,导致无法使用brew install的方式安装php的扩展,现在改为用pecl安装,pecl安装swoole的方法为: pecl install swoole 出现在选项要填yes还是no,这篇文章有写:https://www.jianshu.com/p/14f542b7e5d0#comment-27164461 可能出现的报错及解决方法 1 fatal error: 'openssl…
1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.[——根据具体目录而定]常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|…
---恢复内容开始--- mac安装python有两种方式:此处叙述官网安装下载. mac 自带python2.x版本,python2和3之间的差距还是有的.下面简单叙述我安装python3.7的过程. 1.到官网下载安装最新版本(2.通过Homrbrew安装) 下载python3.7 https://www.python.org/downloads/mac-osx/ 对于Python 3.7版本,提供了两个二进制安装程序选项供下载.默认版本是64位,适用于macOS 10.9 (Maveric…