Build an online and offline test environment

Source: Internet
Author: User
Tags sonatype

All environments are built based on 64-bit centos6.5 and are basically installed.

2 Web servers: 172.16.30.10 172.16.30.11

2 MQ 172.16.30.12 172.16.30.13

2 MySQL instances 172.16.30.14 172.16.30.15

1 LVS 172.16.30.16 VIP: 172.16.30.30


LVS uses ipvsadm for management

Dynamic and Static separation using nginx + Tomcat on the Web

MQ adopts cluster sharing

MySQL uses one master and one slave

In addition:

Run Jenkins, nexus, and NFS storage on LVS.

Run memcached on MQ


Build Environment:

> Build an LVS Environment

Check whether ipvsadm is installed

Lsmod | grep ip_vs

If no information is displayed, it indicates that it is not installed. Otherwise, install. Both Yum installation and compilation and installation are supported. Compilation and installation are used here.

Install required components and RPM packages

Yum install-y libnl * popt * kernel-headers OpenSSL * GCC *

Download and install

Wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz

Tar zxf ipvsadm-1.26.tar.gz

CD ipvsadm-1.26

Make & make install

CD ..

Configure ipvs

Configure the alias Nic and start the VIP

Ifconfig eth0: 0 172.16.30.30 netmask 255.255.255.0

Clear the scheduler hash table

Ipvsadm-C

Configure rules (I am not familiar with the ipvsadm command and can ask a man)

Ipvsadm-a-t 172.16.30.30: 80-s WRR-P 20

Ipvsadm-a-t 172.16.30.30: 80-r 172.16.30.10: 80-g-W 1

Ipvsadm-a-t 172.16.30.30: 80-r 172.16.30.11: 80-g-W 1

Ipvsadm-ln

Save rule

Ipvsadm-save (temporary)

/Etc/init. d/ipvsadm save (permanently saved to/etc/sysconfig/ipvsadm)

Start command

/Etc/init. d/ipvsadm start

/Etc/init. d/ipvsadm stop

/Etc/init. d/ipvsadm status

> Install Jenkins

Wget-O/etc/yum. Repos. d/Jenkins. Repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

Rpm -- import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

Yum install Jenkins-y

/Etc/init. d/jenins start

Netstat-lnt | grep 8080

Webpage login (preferably Google or Firefox)

Http: // 172.16.30.101: 8080/

Extension:

Jenkins Security Settings

Http://www.cnblogs.com/itech/archive/2011/11/15/2249457.html

> Install nexus

Official Website http://www.sonatype.org/nexus/go#and the official website introduces the installation method

Http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz

Start with a nexus user

Useradd nexus

Tar zxf nexus-latest-bundle.tar.gz

CP-r sonatype-work/usr/local/

CP-r nexus-2.9.0-04 // usr/local/

Ln-SV/usr/local/nexus-2.9.0-04 // usr/local/nexus

Chown-r nexus. Nexus/usr/local/nexus *

Chown-r nexus. Nexus/usr/local/sonatype-Work

VI/usr/local/nexus/bin/nexus

Netstat-lnt | grep 8081

Webpage login (preferably Google or Firefox)

Http: // 172.16.30.101: 8081/nexus

Default username and password: admin/admin123

(To be continued)

This article from the "lisp O & M path" blog, please be sure to keep this source http://lspgyy.blog.51cto.com/5264172/1552995

Build an online and offline test environment

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.