摘要: 习惯了chrome,用火狐真的很不习惯。 1、配置yum下载源: sudo vim /etc/yum.repos.d/google-chrome.repo 在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repo, 并且在该文件中添加如下内容: 2、sudo yu 阅读全文
posted @ 2017-10-05 22:26 lplucky 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 今天在新的centos主机上搞django的开发 环境,在安装相关模块遇到些问题,在这里记录下,前面postgresql的安装已经说过,在此就不再说了 一、安装python虚拟环境 为什么要用虚拟环境呢?虚拟环境的好处简直太多,当我们想用不同的python版本,不同的开发环境,更方便的迁移已开发好的 阅读全文
posted @ 2017-10-05 20:47 lplucky 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 一、ubuntu 1、sudo apt-get install postgresql 2、sudo su postgres 3、更改密码(postgresql安装好后有个默认用户和默认数据库,名字都是postgres,我们需要先设置一个密码,然后才能连接) 4、连接 psql -U postgres 阅读全文
posted @ 2017-10-05 15:24 lplucky 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 摘自官方文档: https://www.postgresql.org/docs/9.2/static/libpq-connect.html The general form for a connection URI is: The URI scheme designator can be eithe 阅读全文
posted @ 2017-10-05 12:10 lplucky 阅读(342) 评论(0) 推荐(0) 编辑