1、配置ip
#Vi/etc/sysconfig/network-scripts/ifcfg-th0
IPADDR=192.168.1.80
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
TYPE=Ethernet
onBOOT=yes
2、配置DNS上网
#Vi/etc/resolv.conf
nameserver192.168.1.1
3、下载安装包
# yum-y install gcc gcc-c++ autoconf mysql-devel libtool pkgconfig ncursesncurses-devel make gettext
# reboot
MySql Proxy配置脚本
libevent安装: (root)
#tar –libevent-2.0.15-stable.tar.gz–C /usr/local
#cd /usr/local
#mv libevent-2.0.15-stable libevent
#cd /usr/local/ libevent
# ./configure
# make
# make install
Glib2安装:
glib2安装glib-2.18.4版本,最新版本安装报错,从此处可以下载:
http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.4.tar.gz
运行脚本:
# tar xvf glib-2.18.4.tar.gz
# cd glib-2.18.4
# ./configure
# make
# make install
Readline安装
# tar xvf readline-6.1.tar.gz
# cd readline-6.1
# ./configure
# make && make install
#应用ldconfig –v
# ldconfig –v
Lua安装: (root)
(安装之前需要先安装readline6.1,不然会报错缺少头文件)
#tar –zxvf lua-5.2.0.tar.gz –C /usr/local
#cd /usr/local
#mv lualua-5.2.0 lua
#cd /usr/local/lua
#vi Makefile,修改INSTALL_TOP= /usr/local/lua
[ali