婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2008-2-14
|
本帖最后由 chronicle 于 2014-11-11 17:29 编辑
更新
重装了fedora18,用简单粗暴的yum install 直接装了postgresql 全家,服务终于开启了。
然后果然问题又来了,由于使用的了和网站提供的脚本完全不一对应的fedora版本和postgresql,
结果权限问题一大堆。。。。。
求大大远程帮助,赏金200软妹币,改改脚本就行,或者你教我图形化的解决方案,有经验,花不了1个小时。
具体资料我详细再说明一下:
一个网站开放了数据库,里面有各种可以用来统计的资料,数据库以mimic2cdb-2.6-Definitions.tar.gz/ mimic2cdb-2.6-1.tar.gz/ mimic2cdb-2.6-2.tar.gz .......这样30多个分包的形式提供下载。
网站提供了prep.sh来配置数据库目录和用户账号,import.sh来把分包里的数据批量导入数据库中。
由于我现在用了教程上不一样的fedora版本和postgresql,所以现在这两个脚本都有问题。
哪位大大愿意帮个小忙,软妹币200供上,虽然不多,但是如果你有相关经验的话,简直轻而易举。。。。。
——————————————————————————————————
最近在搞大数据的工作,从网站上下 了一堆数据库的压缩分包,然后提供数据库的网站写了个教程教你怎么在fedora 14 下配置postgresql。然后通过批处理文件导入数据库。
虽然我英文又臭又烂,linux完全新手,但是已经折腾了好几天了,而且问题都是变着花样来,完全没有进展。
目前的问题是fedora已经在虚拟机上安装好了,然后就是配置postgresql数据库,网站上的教程是这么写的:
1. Acquire root (superuser) privileges by logging in as "root", or by
running "sudo -s" or "su". Get help from your system administrator
if necessary. If the PostgreSQL server has already been installed,
skip ahead to step 5 below. 这步骤ok
2. In /etc/yum.repos.d/, edit fedora.repo, fedora-updates.repo, and (if you
have it) fedora-updates-testing.repo, adding the line
exclude-postgresql*
at the end of each [fedora*] and [updates*] section. 这步骤不明白的是[fedora*]指的是所有fedora打头的部分还是就[fedora],反正我每一个section都加了。
3. Install the yum configuration and GPG key for PGDG RPMs:
rpm -ivH http://yum.pgrpms.org/reporpms/9.0/pgdg-fedora-9.0-2.noarch.rpm 这步骤ok,本来不行,我用浏览器进网址看了一下,发现包的版本更新了,pgdg-fedora90-9.0-5.noarch.rpm
4. Install a basic PostgreSQL 9.0 server:
yum install postgresql90-server
好了,卡在这了,老是提示Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again,网上说法很多,貌似是源地址的问题,
问题是我网上百度了几个yum的源,都是几百年前的地址了,根本不能用。是不是挂vpn就ok了?
This command pulls in other modules required by the server, including
postgresql90 (the client) and postgresql90-libs (common shared libraries).
There are many optional modules you can install at the same time or later,
as you wish. You won't need any of them to run the MIMIC Importer.
5. Initialize the database cluster in PGDATA (usually /var/lib/pgsql/9.0/data):
service postgresql-9.0 initdb
6. (Optional) To start the server automatically after each reboot, run:
chkconfig postgresql-9.0 on
7. To start the server without rebooting, run:
service postgresql-9.0 start
楼下的傻逼在起哄表白,我却在折腾linux,要疯了,如果有人愿意帮我配置**库,送50手机话费以表感谢
|
|