[root@centos7 ~] wget http://www.lua.org/ftp/lua-5.3.5.tar.gz [root@centos7 ~] tar zxvf lua-5.3.5.tar.gz [root@centos7 ~] cd lua-5.3.5 [root@centos7 ~] make linux [root@centos7 ~] make INSTALL_TOP=/usr/local/lua install
2. 安装haproxy
下载并安装至/usr/local/haproxy
1 2 3 4 5
[root@centos7 ~] wget https://www.haproxy.org/download/2.0/src/haproxy-2.0.11.tar.gz [root@centos7 ~] tar zxvf haproxy-2.0.11.tar.gz [root@centos7 ~] cd haproxy-2.0.11 [root@centos7 ~] make -j $(nproc) TARGET=linux-glibc USE_OPENSSL=1 USE_ZLIB=1 USE_LUA=1 LUA_LIB=/usr/local/lua/lib/ LUA_INC=/usr/local/lua/include/ USE_PCRE=1 USE_SYSTEMD=1 [root@centos7 ~] make install PREFIX=/usr/local/haproxy
# The following lines leverage SystemD's sandboxing options to provide # defense in depth protection at the expense of restricting some flexibility # in your setup (e.g. placement of your configuration files) or possibly # reduced performance. See systemd.service(5) and systemd.exec(5) for further # information.
# NoNewPrivileges=true # ProtectHome=true # If you want to use 'ProtectSystem=strict' you should whitelist the PIDFILE, # any state files and any other files written using 'ReadWritePaths' or # 'RuntimeDirectory'. # ProtectSystem=true # ProtectKernelTunables=true # ProtectKernelModules=true # ProtectControlGroups=true # If your SystemD version supports them, you can add: @reboot, @swap, @sync # SystemCallFilter=~@cpu-emulation @keyring @module @obsolete @raw-io