A Concise installation guide for Informix databases under Linux

Source: Internet
Author: User
Tags informix port number linux

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.