CentOSの最近のブログ記事

CentOS 5.3 (x86_64)にSubversion1.7をインストールする方法を紹介します。

svn 1.7からはワーキングコピーの管理方法とHTTP通信のパフォーマンスが大幅に改善されて、いろんな作業が高速になります。

実はコンパイルに苦労して半日かかりました。
この手順どおりにやればすんなりいけると思います。
CentOS6で、visudoコマンドを実行しようとしたらコマンドが存在しませんでした。

# visudo
-bash: visudo: コマンドが見つかりません
しかも、yumでインストールしようとしてもパッケージが見つかりません。

# yum search visudo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.pensativo.nl
 * epel: mirror.bytemark.co.uk
 * extras: centos.mirror.pensativo.nl
 * ius: pancks.sothatswhy.org.uk
 * updates: centos.mirror.pensativo.nl
Warning: No matches found for: visudo
No Matches found

visudoはsudoの中に

実は、sudoをインストールするとvisudoが使えるようになります。

# yum search sudo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.pensativo.nl
 * epel: mirror.bytemark.co.uk
 * extras: centos.mirror.pensativo.nl
 * ius: pancks.sothatswhy.org.uk
 * updates: centos.mirror.pensativo.nl
============== N/S Matched: sudo ===================
sudo.x86_64 : Allows restricted root access for specified users

# yum -y install sudo
# visudo
ベンチマークとか検証用で、まっさらのPostgreSQLをちゃちゃっと使いたいというときのマニュアルです。
※事前にPostgreSQL本体をインストールしておいてください。

やはりPostgreSQLはソースからコンパイルするのが一番です。(←くどい)
CentOS 5.6 + PostgreSQL 8.4のときと手順は全く同じです。

以下rootで作業します。
yum -y install readline readline-devel # 事前準備
wget ftp://ftp2.jp.postgresql.org/pub/postgresql/source/v9.1.1/postgresql-9.1.1.tar.gz
tar xvfz postgresql-9.1.1.tar.gz
cd postgresql-9.1.1
./configure
make  # コンパイル
make install # インストール

echo "PATH=/usr/local/pgsql/bin:\$PATH" >> /etc/profile # PATHを通しておきます。
adduser  postgres # 管理ユーザを作成
mkdir /usr/local/pgsql/data # データディレクトリを作成
chown postgres /usr/local/pgsql/data # オーナーを変更
su - postgres

以下、ユーザpostgresで作業します。
やはりPostgreSQLはソースからコンパイルするのが一番です。

以下rootで作業します。
yum -y install readline readline-devel # 事前準備
wget ftp://ftp2.jp.postgresql.org/pub/postgresql/source/v8.4.9/postgresql-8.4.9.tar.gz
tar xvfz postgresql-8.4.9.tar.gz
cd postgresql-8.4.9
./configure
make  # コンパイル
make install # インストール

echo "PATH=/usr/local/pgsql/bin:\$PATH" >> /etc/profile # PATHを通しておきます。
adduser  postgres # 管理ユーザを作成
mkdir /usr/local/pgsql/data # データディレクトリを作成
chown postgres /usr/local/pgsql/data # オーナーを変更
su - postgres

以下、ユーザpostgresで作業します。

人気記事

このアーカイブについて

このページには、過去に書かれたブログ記事のうちCentOSカテゴリに属しているものが含まれています。

前のカテゴリはBashです。

次のカテゴリはGitです。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

最近の人気記事