Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1017392
  • 博文数量: 171
  • 博客积分: 55
  • 博客等级: 民兵
  • 技术积分: 2077
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-04 10:11
个人简介

pugna

文章分类

全部博文(171)

文章存档

2021年(4)

2020年(1)

2019年(4)

2018年(5)

2017年(7)

2016年(9)

2015年(36)

2014年(8)

2013年(96)

2012年(1)

发布时间:2013-11-29 15:40:23

系统环境:CentOS 6.4 64bit 在PostgreSQL 9.3的源码包中,已经有linux系统的启动示例,就是 postgresql-9.3.0/contrib/start-scripts/linux 这个文件。具体步骤:1. cp postgresql-9.3.0/contrib/start-scripts/linux  /etc/init.d/postgresql2.vim /etc/init.d/postgresql修改 prefix=/postgresql 为实际的.........【阅读全文】

阅读(2710) | 评论(0) | 转发(0)

发布时间:2013-11-28 19:51:42

ssh远程执行命令技巧......【阅读全文】

阅读(2428) | 评论(0) | 转发(0)

发布时间:2013-11-28 19:37:17

Oracle hint用法及优化器......【阅读全文】

阅读(1647) | 评论(0) | 转发(0)

发布时间:2013-11-28 17:10:37

PostgreSQL的日志分析工具--pgbadger安装与使用pgbadger是用perl写的分析PostgreSQL日志的工具。如果需要分析PostgreSQL生成的csv日志,则必须保证本机中安装了perl的 Text::CSV_XS 模块。安装步骤:在https://github.com/dalibo/pgbadger下载最新的release版本[root@testos ~]# tar -zvxf pgbadger-4.1.tar.gz .........【阅读全文】

阅读(5053) | 评论(0) | 转发(1)

发布时间:2013-11-28 17:00:05

CentOS 5安装Perl的 Text::CSV_XS 模块[root@testos ~]# perl -MCPAN -e shellTerminal does not support AddHistory.cpan shell -- CPAN exploration and modules installation (v1.7602)ReadLine support available (try 'install Bundle::CPAN')cpan> install Text::CSV_XSCPAN: Storable loaded okGoing to.........【阅读全文】

阅读(6371) | 评论(0) | 转发(0)

发布时间:2013-11-28 10:20:11

$ pgbench -M prepared -f ./pgbench.sh -T 60 -c 20 -p 5444 -U testuser testdbPassword: starting vacuum...ERROR:  relation "pgbench_branches" does not exist原因,testdb并不是使用pgbench -i db_name建立的,在使用pgbench测试时,不要vacuum,即要在pgbench命令中加上-n 选项,指定不vacuum。.........【阅读全文】

阅读(4948) | 评论(0) | 转发(0)

发布时间:2013-11-26 21:06:33

转载自 http://heylinux.com/archives/1075.html今天,我接到了一位同事的电话,说有一个严重的问题需要处理,“所有的Crontab计划任务都被人清空了”。我立刻问有没有备份,回答是“可能没有”。这样一来,情况就变得非常紧急了,因为我们每天在跑的计划任务有上百条。于是我登陆到服务器,检查了所有相.........【阅读全文】

阅读(4898) | 评论(0) | 转发(0)

发布时间:2013-11-25 12:35:19

在postgis中执行./configure时,遇到 checking for library containing GDALAllRegister... no 的错误信息[root@test postgis-2.1.1]# ./configure.........checking for library containing GDALAllRegister... noconfigure: error: could not find GDAL解决办法:将PostgreSQL的lib目录(/postgresql/lib)和GDA.........【阅读全文】

阅读(5259) | 评论(0) | 转发(0)

发布时间:2013-11-22 16:39:01

以前在RHEL下做实验使用的是本地yum源,现在想使用在线源,但redhat的yum源是需要注册缴费才可以使用的。这里我根据前人的文档做了实验,成功在RHEL5.5下使用centos的yum源,整理出来以供学习交流之用。......【阅读全文】

阅读(2267) | 评论(0) | 转发(0)

发布时间:2013-11-22 15:19:22

转自 http://space.itpub.net/25313300/viewspace-708509由于 redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,重启安装,再配置其他源.本文包括配置本地源及第三方源。第三方源包括:网易,epel,repoforge ,rpmfusion 以下为详细过程: 1.删除redhat原有的y.........【阅读全文】

阅读(2092) | 评论(0) | 转发(0)

发布时间:2013-11-22 01:34:38

    CentOS安装PostGIS最方便的方法是用PostgreSQL源加上EPEL源,直接yum安装,无痛解决依赖问题(源码安装时遇到的依赖问题会让人抓狂的)。系统环境:CentOS 6.4 x64要求:PostgreSQL安装到 /postgresql 目录,数据目录为 /postgresql/data。1.使用PostgreSQL源参考http://wiki.postgresql..........【阅读全文】

阅读(5730) | 评论(0) | 转发(0)

发布时间:2013-11-21 18:23:54

CentOS5/6使用EPEL源CentOS 6.xwget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -ivh epel-release-6-8.noarch.rpmrpm -ivh remi-release-6.rpmCentOS 5.xwget http://dl.fedoraproject.org/pub/epel/5/x.........【阅读全文】

阅读(1635) | 评论(0) | 转发(0)

发布时间:2013-11-21 15:51:11

在PostgreSQL中建立GIS数据库postgres=# create user gisuser password '123456';CREATE ROLEpostgres=# create tablespace tbs_geo owner gisuser location '/tbs_postgisdb';CREATE TABLESPACEpostgres=# create database postgisdb owner=gisuser tablespace=tbs_geo;CREATE DATABASEpostgres=# \c postgisdb .........【阅读全文】

阅读(4176) | 评论(0) | 转发(0)

发布时间:2013-11-21 14:58:55

引用自http://www.pcyyjs.com/sys/win7/2197/开始 > 运行(或者快捷键win+R): services.msc,找到以下服务项,并开启。  UPnP Device Host:允许 UPnP 设备宿主在此计算机上。如果停止此服务,则所有宿主的 UPnP 设备都将停止工作,并且不能添加其他宿主设备。如果禁用此服务,则任何显式依赖于它的服务将都无法启动.........【阅读全文】

阅读(1533) | 评论(0) | 转发(0)

发布时间:2013-11-18 12:33:24

没有使用LVM真是伤不起啊加个磁盘都这么蛋疼!!# df -hFilesystem            Size  Used Avail Use% Mounted on/dev/sda2             9.7G  5.8G  3.5G  63% //dev/sd.........【阅读全文】

阅读(1421) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册