The version used in this article is Informix Dynamic Server 2000. Informix is not an advantage compared to databases such as Oracle, but the reliability is excellent. Let's look at the installation process for the Informix database in the Linux environment.
First step: Get the Database installer. Download the Informix Dynamic Server rpm package at the Www.Linuxbyte.net Software Center.
Step two: Run "linuxconf", add an Informix group, add Informix User, Group is informix,home directory for informix default installation directory "/opt/informix", use the command:
# useradd Informix -d /opt/informix
Step three: Modify the. Bash_profile of the root and Informix users, plus the following lines to set the environment variable:
INFORMIXDIR=/opt/informix
myserver=server
ONCONFIG=onconfig.server
export INFORMIXDIR myserver ONCONFIG
PATH=$PATH: $INFORMIXDIR/bin
export PATH
Statement explanation: "Informixdir" is the installation directory for Informix, "MyServer" is the database server name, can be set arbitrarily, "Onconfig.server" is the file name that will be configured.
Step Fourth: Add a single line of statements in the/etc/services file
sqlexec1 65530/tcp
Statement explanation: 65530 is the port number used by the database. Of course, this port number can be selected from 1000 to 65535, as long as it does not conflict with other system services.
Tip: After entering this line of statements, you must remember to return to save.
Step Fifth: Log back in with root and run the rpm command to install Informix:
rpm -i --relocate /opt/informix
When prompted for a registration number, Setup installs automatically, indicating that the Informix Dynamic Server installation was successful when prompted for a successful installation. The Informix database can be used only after a simple configuration.
Step sixth: Log in as an Informix user to generate an empty file under the command, and change the user and group to Informix:
>datadbs
chown informix datadbs
chgrp informix datadbs
Statement explanation: The "Datadbs" file is used to store data for the database.