Install the domino9 additional server in Centos

Source: Internet
Author: User
Tags centos server

Centos server install domino9 additional server

Installing Domino Server on Linux is a small challenge. In fact, it is not complicated for everyone to think about. Since it is a commercial software, OEM has long solved the difficulty of Installation for us, in addition, if you select a Linux release version that you are familiar with, there are still some differences in the operations of each release version. Here, select the latest Centos 6 and try to install it on Centos of the Server version, although the Desktop version is acceptable

Environment Introduction:

Hostname: gavin-mail01.gavin.com

Ip: 192.168.110.10

Roles: windows2008R2 Domino Server

Hostname: gavin-mail02.gavin.com

Ip: 192.168.110.20

Roles: windows2008R2 Domino Server

Hostname: gavin-mail01.gavin.com

Ip: 192.168.110.30

Roles: linux Domino Server

Hostname: gavin-dc

Ip: 192.168.110.254

Roles: DC DNS DHCP

Hostname: gavin-TMG

Ip: 192.168.110.1

Roles: Network Gateway

Domain name: gavin.com

Because there are already two windows domino servers in the environment, next we will deploy a domino server under centos, named: gavin-mail03.gavin.com

First, install centos sever

Ip a show

View the current IP Address

Modify Nic configuration EDIT: vi/etc/sysconfig/network-scripts/ifcfg-eth0

Modify gateway configurations

Edit: vi/etc/sysconfig/network:

DEVICE = eth0 # describe the DEVICE alias for the NIC, for example, it is eth0 in the ifcfg-eth0 File
BOOTPROTO = static # Set the way for the NIC to obtain the IP address. The possible options are static, dhcp, or bootp, which respectively correspond to the IP address specified by the static state and the IP address obtained through the dhcp protocol, IP addresses obtained through the bootp protocol
BROADCAST = 192.168.0.255 # corresponding subnet BROADCAST address
HWADDR = 00: 07: E9: 05: E8: B4 # physical address of the corresponding Nic

IPADDR = 12.168.0.33 # If you set the method for obtaining the IP address from the network adapter to static, this field specifies the IP address of the network adapter.
NETMASK = 255.255.255.0 # network mask corresponding to the network adapter
NETWORK = 192.168.0.0 # NETWORK address of the NIC

GATEWAY = 192.168.1.0

3. Modify DNS Configuration

Edit: vi/etc/resolv. conf:

Nameserver 192.168.1.254

4. Restart the network service.

Service network restart

5. Disable the Firewall:

Service iptables stop

Chkconfig iptables off permanent firewall Shutdown

We do not recommend disabling the firewall in a real environment. We need to set firewall rules.

Iptables-I INPUT-p tcp-m multiport -- dport 25, 80, 110,143,443,995,465,993-m state -- state new -- syn-j ACCEPT


Iptables-L-v-n


/Etc/init. d/iptables save

6. getenforce to view selinux security status

We recommend that you disable:

Vi/etc/selinux/config

Selinux = disabled

Then use ctr for remote connection

Netstat-anlpt | grep 110 check whether port 110 is used

'/''' Is similar to netstat-an | find "110" in windows"

Ctrl + l clear screen

Yy-copy p and paste

Disable the postfix Service

Service postfix stop

Chkconfig postfix off

View port status through netstat-anlpt

Modify the hosts file

Vi/etc/hosts

192.168.110.30 gavin-mail03.gavin.com

To ensure data stability, We need to mount a separate disk and store the domino installer and data on a separate data disk.

After the disk is successfully mounted, We need to partition and format the disk and mount it to the corresponding directory;

After attaching a disk, we recommend that you restart the system to find the new disk.

Use fdisk-l to view the current disk status

Disk Partition. We want to divide the newly added disk into two zones, respectively, to store the installer and database.

We found that the directory of the new disk is/dev/sdb.

Create a disk partition fdisk/dev/sdb

Use M to display fdisk-related commands; we need to add a new partition, so select N

Add a disk partition and select "p" as the primary partition and disk number. The default value is "1". The disk partition is + 5 GB.

Note: after creating a new disk partition, you must use the w key to save it.

You can use fdisk-l to view disk partitions.

/Dev/sdb1

/Dev/sdb2

Format: ext4 (disk type)

Mkfs. ext4/dev/sdb1

Mkfs. ext4/dev/sdb2

Next we will create two directories:

Mkdir/opt/domino-install

Mkdir/opt/domino-data

Mount the two partitions to the directory

Mount/dev/sdb1/opt/domino-install

Mount/dev/sdb1/opt/domino-data

Modify the etc/fstab file

Vim/etc/fstab

This means that the system will automatically mount and change the directory after the next restart.

Install Domino 9

We recommend that you create a notes user before installation. This user is mainly used as an application when the domino system is started; if you start domino with the system root, there will be problems;

This user is created locally in linux

User gavin

Passwd gavin

Two passwords are prompted:

Configure domino

Modify the maximum number of handles, that is, the number of files that can be opened by domino.

Vi/etc/security/limits. conf

Add two lines at the end

* Soft nofile 30000

* Hard nofile 49152

In the following domino STARTUP script, root starts domino in su mode, so to make the set number of opened files take effect, you need to go to/etc/pam. add:

Session required pam_limits.so

Vi/etc/pam. d/su (open in sudo mode, which means run as Administrator)

To install a linux for domino installation package, you must copy the installation package or attach it to linux to install the package. There are two methods available:

Next, mount the shared domino for linux installation package on windows.

I copied the linux installation package on drive C of 192.168.1100.254.

First, install cifs-utils

Yum install cifs-utils

Then install yum install-y perl

Mount the file through mount after installation.

Mount // 192.168.110.254/c $/mnt/-o user = gavin, dom = gavin.com

Cd/mnt

Cd to the domino installation package path for Installation

./Install

Install Domino 9

We recommend that you create a notes user before installation. This user is mainly used as an application when the domino system is started; if you start domino with the system root, there will be problems;

This user is created locally in linux

User gavin

Passwd gavin

Two passwords are prompted:

Configure domino

Modify the maximum number of handles, that is, the number of files that can be opened by domino.

Vi/etc/security/limits. conf

Add two lines at the end

* Soft nofile 30000

* Hard nofile 49152

In the following domino STARTUP script, root starts domino in su mode, so to make the set number of opened files take effect, you need to go to/etc/pam. add:

Session required pam_limits.so

Vi/etc/pam. d/su (open in sudo mode, which means run as Administrator)

To install a linux for domino installation package, you must copy the installation package or attach it to linux to install the package. There are two methods available:

Next, mount the shared domino for linux installation package on windows.

I copied the linux installation package on drive C of 192.168.1100.254.

First, install cifs-utils

Yum install cifs-utils

Then install yum install-y perl

Mount the file through mount after installation.

Mount // 192.168.110.254/c $/mnt/-o user = gavin, dom = gavin.com

Cd/mnt

Cd to the domino installation package path for Installation

./Install

By default, press enter to install

Select the data installation directory:/opt/ibm/domino by default

Because I have attached a disk and partitions in the environment, we store the data in the/opt/domino-data directory.

In user name: gavin

Group name: gavin

Select 2 (remote)

Confirm information Installation

Start Installation

Installation Complete

If the root user is installed during installation, you need to change the owner of the domino installation directory and data directory. If you change username and gourpname to gavin during installation, you do not need to perform the following operations;

Change the directory owner to gavin.

Because I want to create an additional server, create a server id: gavin-mail03.id in advance

Then copy the id file to the linux domino (domino-data) data directory.

Because I am currently in the domino-data directory, it is represented by. (point ).

Changing the gavin-mail03.id owner at the same time

Switch the directory to the domino data DIRECTORY/opt/domino-data

Run:/opt/domino-install // bin/server-listen

Error prompt;

Run the following command:

Su-gavin-c 'CD/opt/domino-data;/opt/domino-install/domino/bin/server-Listen'

Use the domino administrator remote connection tool to connect to domino

Configure the Startup Script

Download the startup script:

Wget vG

Install wget first

Yum install wget

Paste and download the copied connection.

Wget https://raw.github.com/ddellaquila/dd-repo/master/lotus-domino/domino_rc-script

Modify the script as follows,

Change/bin/sh to/bin/bash

Vi domino_rc_script

Modify user-level user groups, installation directories, and Data Directories

Save and exit

Import the script into the/etc/init. d/directory and rename it to domino. Change the owner and owner groups to root and grant 755 permissions.

Cp domino_rc-script/etc/init. d/domino

Chown root. root/etc/init. d/domino

Chmod 775/etc/init. d/domino

And register as a random start

Chkconfig domino on

Create the. domino. pwd File under/opt/domino-data. The content is blank.

Touch/opt/domino-data/. domino. pwd

Chown gavin. gavin/opt/domino-data/. domino. pwd

Chmod 400/opt/domino-data/. domino. pwd

Chmod 755/opt/domino-data

Now the settings are complete.

Restart the server

Reboot

In the vmwarevm, press ctrl + alt and press the space key. Then press F12.

Or run the following command on the console:

Su-gavin-c 'CD/opt/domino-data;/opt/domino-install/domino/bin/Server'

Start the service manually

/Etc/init. d/domino start

Use telnet to test whether ports 25 and 110 of the server are connected.

View the server status of the gavin-mail03 through adminstrator contoso

The registered user is on the gavin-mail03.gavin.com Server

We all know that after the creation, a user. nsf will be generated under the mail file under the domino data directory.

Because my database disk is attached to a separate Disk

/Opt/domino-data/mail/jhx. nsf

Next we will test it through outlook.

Finally, in order to ensure that the domain name can be resolved normally, do not forget to add a resolution record in dns

Use outlook to test server Verification

This article from "Gao Wenlong" blog, please be sure to keep this source http://gaowenlong.blog.51cto.com/451336/1277183


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.