CentOS6.9 は、gnomeデスクトップで、rpmで、インストール(おもにGUIで、操作可能)
rootでログインした状態からスタート
CentOS6.9 + Firebird1.5.6 Superserver install と手順は、ほぼ同じすが、xinetdのインストールと、xinetdの起動が、追加される手順手なります。
インストール以降、クライアントからのGUI操作等は、同様です。
1.
--------------------------
cat /etc/redhat-release
arch
arch
--------------------------
2.
--------------------------
yum -y update
--------------------------
3. 不足のライブラリをインストール
---------------------------------
yum -y install libstdc++.so.5
---------------------------------
4.
---------------------------------
yum -y install libncurses.so.5
---------------------------------
5.
---------------------------------
yum -y install libstdc++.so.6
6. xinetdをインストール
------------------------
yum -y install xinetd
------------------------
6. セットアップ用のrpmを、サイトからダウンロードまたは、コマンドラインから
-----------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
7. サイトからダウンロードした場合は、/root/ダウンロードに、FirebirdCS-1.5.6.5026-0.i686.rpmがダウンロードされていることを確認します。
------------------------
cd /root/ダウンロード
ls
------------------------
8. rpm でインストール
-------------------------------------------------
rpm -ihv FirebirdCS-1.5.6.5026-0.i686.rpm
9. データベースアクセス用フォルダの権限の設定、(fdb156ssというフォルダを作成)
-------------------------------------------------
mkdir /var/fdb156cs
chown -R firebird.firebird /var/fdb156cs
chown -R firebird.firebird /var/fdb156cs
-------------------------------------------------
10.GUIで、xinetdの起動 管理→サービス
サービスの設定の下方へ移動
xinetdを選択
有効を押す
xinetdがグリーンになっていることを確認して、開始を押す
xinetdが起動
Firebirdも起動
10. 初期パスワードの取得
----------------------------------------
cat /opt/firebird/SYSDBA.password
----------------------------------------
ISC_PASSWORD=に、初期パスワードが、記述されています。
11. 初期パスワードを、masterkeyに変更(変更せずに使用する場合は、不要)
cd /opt/firebird/bin
./gsec -user SYSDBA -password old-pass(初期パスワード)
modify SYSDBA -pw new-pass(新しく設定するパスワード)
の手順てなるので、ここでは
-----------------------------------------------
cd /opt/firebird/bin
./gsec -user SYSDBA -password YDeAFJBG
modify SYSDBA -pw masterkey
quit
exit;
modify SYSDBA -pw masterkey
quit
-----------------------------------------------
12. テストでデータベースを作成してみます。
-----------------------------------------------------------------------------------------------------------
./isql -u sysdba -p masterkey
CREATE DATABASE '/var/fdb156ss/TEST1.FDB' page_size 8192 default character set sjis_0208;exit;
-----------------------------------------------------------------------------------------------------------
13. データベースが作成できているか、確認します。
--------------------
ls /var/fdb156ss
--------------------
/etc/xinetd.conf
で接続プロセス数を増やす
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#enabled=
#disabled=
# Define general logging characteristics.
log_type= SYSLOG daemon info
log_on_failure= HOST
log_on_success= PID HOST DURATION EXIT
# Define access restriction defaults
#
#no_access=
#only_from=
#max_load= 0
cps= 500 10
instances= 500
per_source= 70
# Address and networking defaults
#
#bind=
#mdns= yes
v6only= no
# setup environmental attributes
#
#passenv=
groups= yes
umask= 002
# Generally, banners are not used. This sets up their global defaults
#
#banner=
#banner_fail=
#banner_success=
}
includedir /etc/xinetd.d