centOS7にLAPP環境(postgresの9.3で)をインストール
<環境>
centOS7
<やりたいこと>
LAPP環境作りたい。
postgresはyumになる9.2はダメ。9.3を入れる必要がある。
<なんと>
centOS7からserviceコマンドとかapachectlコマンド使えなくなってました,,,,
公開から1年近く経ってやっと7を触り始めたら、こんなことなっているのね。
<やったコマンドをダラダラと書きます>
centの6とあんまり変わんない。これだけ
apacheは勝手に起動してくれてます。
【ポスグレ9.3】
1. rpmから9.3
rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
yum install postgresql93-server postgresql93-devel
yum install postgresql93-contrib.x86_64
3.dbを初期化する。
/usr/pgsql-9.3/bin/postgresql93-setup initdb
4.postgresを起動
systemctl start postgresql-9.3.service
基本の手順やコマンドは9.4とかでも一緒のはずなんで、参考になればと。