好好爱自己!

摘要: 上面的报告说明, postgres这个用户没在 sudoers 的列表中, 所以这个“事件”会被报告。 阅读全文
posted @ 2017-07-24 20:14 立志做一个好的程序员 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 备份: pg_dump -d m3vg -h localhost -p 5432 -U delta -W -f 1024.dump -F tar 恢复: pg_restore -h localhost -p 5432 -Udelta -W 1024.dump -d m3vg 忘记postgresql 阅读全文
posted @ 2017-07-24 17:03 立志做一个好的程序员 阅读(1718) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get purge postgresql-9.5 On Ubuntu 14.04 I have done this to get the latest postgres: Then I installed version 9.4: However it seems I have n 阅读全文
posted @ 2017-07-24 16:24 立志做一个好的程序员 阅读(2230) 评论(0) 推荐(0) 编辑
摘要: I happen to have 2 installed instances of postgresql at my machine: 9.1 and 9.2: They are located at /etc/postgresql/9.1/ and /etc/postgresql/9.2/. Th 阅读全文
posted @ 2017-07-24 15:45 立志做一个好的程序员 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 原文:http://wiki.ubuntu.org.cn/Shell%E7%BC%96%E7%A8%8B%E5%9F%BA%E7%A1%80 参考: http://www.cnblogs.com/zqyanywn/p/5943977.html Shell编程基础 原作者 Leal;请参阅页面底部的编 阅读全文
posted @ 2017-07-24 01:27 立志做一个好的程序员 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 原文 http://blog.chinaunix.net/uid-24426415-id-77244.html 初级入门 sed工具是一种非交互式的流编辑器。默认情况下只会影响输出,不会改变输入。sed处理文档时是以行为单位的。功能有:删除、查找替换、添加、插入、从其他文件读取。 其实这些功能看起来 阅读全文
posted @ 2017-07-24 01:07 立志做一个好的程序员 阅读(5017) 评论(0) 推荐(0) 编辑
摘要: 1. Linux登录过程中加载配置文件顺序: /etc/profile → /etc/profile.d/*.sh → ~/.bash_profile → ~/.bashrc → [/etc/bashrc] 可查看默认的~/.bashrc文件如下: 2. Shell命令提示符及颜色是由PS1来配置: 阅读全文
posted @ 2017-07-24 00:13 立志做一个好的程序员 阅读(343) 评论(0) 推荐(0) 编辑
摘要: "Peer authentication" means that it's comparing your database username against your Linux username. It should work if you're logged in as postgres. Yo 阅读全文
posted @ 2017-07-24 00:03 立志做一个好的程序员 阅读(3448) 评论(0) 推荐(0) 编辑

不断学习创作,与自己快乐相处