RHCS Java-based HA dual-machine hot standby

Source: Internet
Author: User
RedHatLinuxEnt5.6 installation manual/RHCS installation and configuration manual directory 1. RHEL5.6 system installation... ii. RHEL5.6 System Configuration... 2.1 set time synchronization... 2.2 create useradmin, sysoper, sysadmin user management user and system monitoring... 2.3 deploy the sysoper and useradmin maintenance scripts... 2.4 configure sudo. iii. RHEL5.6 system security reinforcement and system optimization... iv. RHEL5

RedHat Linux Ent 5.6 installation manual/RHCS installation and configuration Manual

Contents
1. RHEL5.6 system installation...
Ii. RHEL5.6 System Configuration...
2.1
Set Time Synchronization...
2.2
Create useradmin, sysoper, and sysadmin users to manage users and system monitoring...
2.3
Deploy the sysoper and useradmin maintenance scripts...
2.4
Configure sudo.
Iii. RHEL5.6 system security reinforcement and system optimization...
Iv. RHEL5.6 YUM configuration...
V. RHCS 5.6 installation and configuration...
5.1
Server Settings...
5.2
Install Cluster software (linux1 and linux2)
5.3
Configure the CLUSTER (linux1 and linux2) on all nodes ).
5.4
Run the following command on all nodes to start the CLUSTER service...
5.5
View Cluster status...
5.6
Manually switch cluster services...

1. RHEL5.6 System Configuration
 
2.1 Set Time Synchronization
 
# Ntpdate asia.pool.ntp.org
 
# Mkdir/etc/sh
 
# Echo '/usr/sbin/ntpdate asia.pool.ntp.org'>/etc/sh/synctime. sh
 
# Chmod + x/etc/sh/synctime. sh
 
# Crontab-e
 
0 0 ***/etc/sh/synctime. sh 2 &>/tmp/synctime. log
 
Save and exit
 
# Service crond restart
 
2.2 set up User Management and System Monitoring for useradmin, sysoper, and sysadmin.

User User id Group Home directory
Sysoper 1001   /Home/sysoper
Useradmin 1002   /Home/useradmin
Sysadmin 1003   /Home/sysadmin

# Useradd-d/home/sysoper-m-u 1001 sysoper; echo password | passwd -- stdin sysoper
 
# Useradd-d/home/useradmin-m-u 1002 useradmin; echo password | passwd -- stdin useradmin
 
# Useradd-d/home/sysadmin-m-u 1003 sysadmin; echo password | passwd -- stdin sysadmin
 
2.3 deploy the sysoper and useradmin maintenance scripts.
 
Upload sh.tar in binary format to the/etc/sh directory
 
# Cd/etc/sh
 
# Tar xvf sh.tar
 
2.4 configure sudo
 
2.4.1 log on to the system as a root user and modify/etc/sudoers
 
# Vi/etc/sudoers
 
Add the following information under root ALL = (ALL) ALL.
 
Sysoper ALL = (ALL) NOPASSWD:/bin/sh/etc/sh/sysopermenu. sh
 
Useradmin ALL = (ALL) NOPASSWD:/bin/sh/etc/sh/useradminmenu. sh
 
Sysadmin ALL = (ALL) NOPASSWD:/bin/su-
 
Save and exit
 
2.4.2 modify a user's profile file
 
# Su-sysoper
 
$ Vi. brash_profile
 

Add the following content at the end of the file:
 
If [-x/opt/cafcs/sh/sysopermenu. sh]; then
 
Echo
 
Sudo/bin/sh/etc/sh/sysopermenu. sh
 
Exec kill-9 $
 
Echo
 
Fi
 
Save and exit
 
# Su-useradmin
 
$ Vi. brash_profile
 

Add the following content at the end of the file:
 
If [-x/etc/sh/useradminmenu. sh]; then
 
Echo
 
Sudo/bin/sh/etc/sh/useradminmenu. sh
 
Exec kill-9 $
 
Echo
 
Fi
 
Save and exit

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.