tar xzvf /usr/local/software/tar/haproxy-1.5.18.tar.gz -C /usr/local/software/src/
arch 命令主要用于显示操作系统架构类型,与 uname -m 命令非常类似。如果输出 x86_64 则表示为 64 位系统,如果输出 i686 或 i386 则表示为 32 位系统。
[root@localhost tar]# arch
i686
mkdir -p /usr/local/software/haproxy
make TARGET=linux26 PREFIX=/usr/local/software/haproxy ARCH=i686
[root@localhost haproxy-1.5.18]# make TARGET=linux26 PREFIX=/usr/local/software/haproxy ARCH=i686
make install PREFIX=/usr/local/software/haproxy
[root@localhost haproxy-1.5.18]#
make install PREFIX=/usr/local/software/haproxy
mkdir -p /usr/local/software/data/haproxy
cp /usr/local/software/src/haproxy-1.5.18/examples/haproxy.cfg /usr/local/software/haproxy/
/usr/local/software/haproxy/sbin/haproxy -f /usr/local/software/haproxy/haproxy.cfg
出现 [WARNING] 不用管
http://192.168.68.129:7777/admin
输入认证名称: mldn java
[root@localhost redis]#
./bin/redis-cli -h 192.168.68.130 -p 16001 -a mldnjava
arch 命令主要用于显示操作系统架构类型,与 uname -m 命令非常类似。如果输出 x86_64 则表示为 64 位系统,如果输出 i686 或 i386 则表示为 32 位系统。
[root@localhost tar]# arch
i686
mkdir -p /usr/local/software/haproxy
make TARGET=linux26 PREFIX=/usr/local/software/haproxy ARCH=i686
[root@localhost haproxy-1.5.18]# make TARGET=linux26 PREFIX=/usr/local/software/haproxy ARCH=i686
make install PREFIX=/usr/local/software/haproxy
[root@localhost haproxy-1.5.18]#
make install PREFIX=/usr/local/software/haproxy
mkdir -p /usr/local/software/data/haproxy
cp /usr/local/software/src/haproxy-1.5.18/examples/haproxy.cfg /usr/local/software/haproxy/
/usr/local/software/haproxy/sbin/haproxy -f /usr/local/software/haproxy/haproxy.cfg
出现 [WARNING] 不用管
http://192.168.68.129:7777/admin
输入认证名称: mldn java
[root@localhost redis]#
./bin/redis-cli -h 192.168.68.130 -p 16001 -a mldnjava