内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

haproxy的安裝

下載地址:

http://www.haproxy.org/#down


文檔地址:

http://www.haproxy.org/#doc1.6



下載好源碼之后,解壓:

安裝 make install



cat /etc/test-sql.cfg

# This is a test configuration.

# It requires a MySQL server running on local port 3306.


global

maxconn 500

pidfile /tmp/proxy.pid


defaults

contimeout 1000

clitimeout 5000

srvtimeout 5000

retries 1

option redispatch

mode tcp



listen test

bind :3307

mode tcp

balance roundrobin

option tcp-check

#option mysql-check user haproxy

server srv1 10.10.230.172:3306 check port 3306 inter 1000 fall 1

# server srv2 127.0.0.2:3306 check port 3306 inter 1000 fall 1

# server srv3 127.0.0.3:3306 check port 3306 inter 1000 fall 1

# server srv4 127.0.0.4:3306 check port 3306 inter 1000 fall 1



啟動:

haproxy -f /etc/test-sql.cfg

[root@10-10-157-43 tests]# ps -ef |grep pro

root 3177 728 0 19:59 pts/0 00:00:00 haproxy -f /etc/test-sql.cfg

root 3187 728 0 20:00 pts/0 00:00:00 grep pro



重新加載:

[root@10-10-157-43 tests]# haproxy -f /etc/test-sql.cfg -sf 3177 &


轉(zhuǎn)載請注明源出處 
QQ 273002188 歡迎一起學(xué)習(xí) 
QQ 群 236941212 
oracle,mysql,PG 相互交流

本文標(biāo)題:haproxy的安裝
文章URL:http://www.rwnh.cn/article24/jdjice.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站網(wǎng)站導(dǎo)航、微信小程序、響應(yīng)式網(wǎng)站App設(shè)計、關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化
德化县| 同心县| 库车县| 凤凰县| 施秉县| 丹凤县| 东源县| 井冈山市| 全南县| 台北市| 扬州市| 理塘县| 沾化县| 汶上县| 贵定县| 华宁县| 运城市| 商城县| 麻城市| 岱山县| 惠安县| 汾西县| 靖远县| 临沧市| 新昌县| 旌德县| 永德县| 二连浩特市| 陈巴尔虎旗| 宁化县| 惠东县| 南木林县| 桐城市| 宣威市| 长兴县| 嘉定区| 申扎县| 贵德县| 屏东市| 公安县| 兰西县|