Installation of the mono and Jexus process small records after the installation of the CentOS 6.X minimal series minimized

Source: Internet
Author: User

In the use of virtual machine installed minimal version of CentOS run Mono+jexus, encountered some pits, record, such as the virtual machine can not access the network, no wget command not open 80 ports, and so on, and other online tutorials have mono+jexus detailed installation tutorials, I wrote this article to make up for some small pits.

CentOS 6.4 x64 Minimal after the mini-Setup is complete, there is no Setup command to set the NIC IP via the character menu mode, nor can you use Yum to update and install the RPM package.

1,ifconfig eth0 192.168.0.10 netmask 255.255.255.0//temporarily set the IP card

2. Route add default GW 192.168.0.1//temporary set route.

3.vi/etc/resolv.conf Command Insert key

NameServer 192.168.0.1//Add DNS press ESC:WQ write exit

If the above network settings are correct, you should be able to ping through www.linuxidc.com

4. set the static IP

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Type=ethernet #网卡类型

Device=eth0 #网卡接口名称

Onboot=yes #系统启动时是否自动加载

Bootproto=static #启用地址协议--static: Static protocol--BOOTP Protocol--DHCP Protocol

ipaddr=192.168.1.11 #网卡IP地址

netmask=255.255.255.0 #网卡网络地址

gateway=192.168.1.1 #网卡网关地址

dns1=10.203.104.41 #网卡DNS地址

hwaddr=00:0c:29:13:5d:74 #网卡设备MAC地址

broadcast=192.168.1.255 #网卡广播地址

Re-import the Ifcfg-eth0 network configuration file

[Email protected]]#/etc/init.d/network Reload

Shutting down interface eth0: [OK]

Shutting down loopback interface: [OK]

Bringing up loopback interface: [OK]

Bringing Up interface eth0: [OK]

Nic interface shutdown and activation

[Email protected]]# ifdown eth0 #关闭网络

[Email protected]]# ifup eth0 #启动网络

Network Service startup and shutdown

[[Email protected] ~]# service network stop #关闭网络服务

[Email protected] ~]# service network start #启动网络服务

[Email protected] ~]# service network restart #重启网络服务

5. Yum Update//Updates CentOS 6.4 installation package.

6,yum install NTSYSV//optional, it seems that Setup can not use

Yum Install System-config-firewall-tui

Yum Install System-config-network-tui

7. Installing yum Install Setuptool can use the command setup//optional, it seems that Setup does not use

After installing a few RPM packages, we are familiar with the setup character graphical interface.

8. Yum Install wget//If no wget command

9. Use one-click script to install mono and Jexus, you can select version

Cd/tmp
wget http://security.ivannet.com/linux/shell/centos6.x_mono_jexus_default.sh
chmod +x centos6.x_mono_jexus_default.sh
./centos6.x_mono_jexus_default.sh

Or use the official script to install Jexus, but mono needs to install it separately

Online Installation:
sudo jexus.org/5.8.x/install | Sh

10. Open 80 port

/sbin/iptables-i input-p TCP--dport 80-j ACCEPT

Then Save:

/etc/rc.d/init.d/iptables Save

Service iptables Restart Restart Firewall, modification takes effect

11, follow Centos/ubuntu boot start Jexus

Scenario 1. Add to/etc/rc.local, follow launch

After experimenting with Ubuntu and CENTOS6, you can use scenario 1. Centos7 don't know why not, if it is CENTOS7 please use Scenario 2, if there is big God know trouble next why

Vi/etc/rc.local
Press the I key to enter edit mode

Add a sentence
/usr/jexus/jws start
Press ESC to exit edit mode, enter: Wq save file
Ubuntu users please add in Exit 0 front ha
Scenario 2. Add as System service, start

cd/etc/init.d/
VI JWs
Press I edit mode, paste the following content

#!/bin/bash
#chkconfig: 2345 80 05
#description: JWs
#

. /etc/rc.d/init.d/functions

Case "$" in
Start
echo "Jexus Start ..."
/usr/jexus/jws start
;;
Stop
echo "Jexus Stop ..."
/usr/jexus/jws stop
;;
Restart
echo "Jexus Restart"
/usr/jexus/jws restart
;;
Status
/USR/JEXUS/JWS status
;;
*)
Exit 1
;;
Esac

Exit $RETVAL
After pressing ESC, enter: Wq save file

Add this script as a "service"

Chkconfig--add JWs

12 . The session is placed in charge of load Balancing machine

Note that 5.8 of StateServer have set the IP address to 127.0.0.1, you need to modify

state4.conf, change the IP to 0.0.0.0 to provide services to the outside.

Of course, the firewall will also open 42424 ports, allowing other servers to access.

<ref= "TCP"  port= "42424"  bindTo= "127.0.0.1"  />

127.0.0.1 Change to 0.0.0.0

Open 42424 Ports

/sbin/iptables-i input-p TCP--dport 42424-j ACCEPT

/etc/rc.d/init.d/iptables Save

Web. config modifications

<mode= "StateServer"  cookiename= "Php_sessionid"   stateConnectionString= "tcpip=192.168.1.90:42424"  timeout= "/> "

Php_sessionid intent to forge into PHP

13. Update Jexus

Sudo/usr/jexus/jws stop
Cd/tmp
sudo rm-rf jexus-5.6.3* >/dev/null 2>&1
wget http://linuxdot.net/down/jexus-5.6.3.tar.gz
TAR-ZXVF jexus-5.6.3.tar.gz
CD jexus-5.6.3
sudo./upgrade
Cd/tmp
sudo rm-rf jexus-5.6.3* >/dev/null 2>&1

14, online update Jexus

sudo jexus.org/5.8.x/upgrade | Sh

15, Jexus provides load balancing, load balancer for 192.168.1.90

/usr/jexus/siteconf/Web Site configuration file. If default, modify the following

reproxy=/http://192.168.1.88/,http://192.168.1.89/,http://xxxx.com/

Installation of the mono and Jexus process small records after the installation of the CentOS 6.X minimal series minimized

Related Article

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.