<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fpostgres%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB</id>
		<title>Linux/postgresインストール - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fpostgres%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Linux/postgres%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;action=history"/>
		<updated>2026-04-18T08:36:42Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Linux/postgres%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;diff=533&amp;oldid=prev</id>
		<title>127.0.0.1: ページの作成:「==クライアント側インストール==  yum install postgresql  ==サーバ側インストール==  yum install postgresql-server  ==インストール確認==  rpm...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Linux/postgres%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;diff=533&amp;oldid=prev"/>
				<updated>2015-05-19T18:13:32Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==クライアント側インストール==  yum install postgresql  ==サーバ側インストール==  yum install postgresql-server  ==インストール確認==  rpm...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==クライアント側インストール==&lt;br /&gt;
 yum install postgresql&lt;br /&gt;
&lt;br /&gt;
==サーバ側インストール==&lt;br /&gt;
 yum install postgresql-server&lt;br /&gt;
&lt;br /&gt;
==インストール確認==&lt;br /&gt;
 rpm -qa | grep postgres&lt;br /&gt;
&lt;br /&gt;
==起動==&lt;br /&gt;
 /etc/rc.d/init.d/postgresql start&lt;br /&gt;
&lt;br /&gt;
==自動起動==&lt;br /&gt;
 /sbin/chkconfig postgresql on&lt;br /&gt;
 /sbin/chkconfig --list postgresql&lt;br /&gt;
&lt;br /&gt;
==接続==&lt;br /&gt;
 # su - postgres&lt;br /&gt;
 -bash-3.2$ psql -l&lt;br /&gt;
&lt;br /&gt;
==postgresユーザ作成==&lt;br /&gt;
 -bash-3.2$ createuser linux1&lt;br /&gt;
 Shall the new role be a superuser? (y/n) n&lt;br /&gt;
 Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
 Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
&lt;br /&gt;
==linuxユーザ作成(postgresと同じユーザを作成==&lt;br /&gt;
 # adduser linux1&lt;br /&gt;
&lt;br /&gt;
==db作成==&lt;br /&gt;
 # su - linux1&lt;br /&gt;
 $ createdb test1&lt;br /&gt;
&lt;br /&gt;
==指定ユーザで接続確認==&lt;br /&gt;
 $ psql -l&lt;br /&gt;
&lt;br /&gt;
 $ psql --version&lt;br /&gt;
 $ psql (PostgreSQL) 8.1.23&lt;br /&gt;
&lt;br /&gt;
==設定ファイル==&lt;br /&gt;
 # /var/lib/pgsql/data/pg_hba.conf&lt;br /&gt;
&lt;br /&gt;
==エラー対応==&lt;br /&gt;
===psql: FATAL:  Ident authentication failed for user===&lt;br /&gt;
 vi /var/lib/pgsql/data/pg_hba.conf&lt;br /&gt;
で最下に以下を追加してpostgres再起動&lt;br /&gt;
 local all all trusthost all 127.0.0.1/32 trust&lt;br /&gt;
&lt;br /&gt;
 psql test1 -U linux1 -W&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>	</entry>

	</feed>