ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
2008年12月23日 星期二
deploy
設定dns
#b1 /var/named/chroot/var/named/master/ooxx.com.tw
f2 IN A 210.17.29.101
ad IN A 210.17.29.101
#跑起來
#/usr/local/sbin/named -t /var/named/chroot -u named
#看有無跑起來
#ps aux | grep named
設定haproxy
#f2 /etc/haproxy.cfg
# The public 'www' address in the DMZ
frontend public
# Host: will use a specific keyword soon
reqisetbe ^Host:\ ad ad
backend ad
mode http
balance roundrobin
# option tcpsplice
clitimeout 60000
contimeout 5000
srvtimeout 60000
redispatch
retries 3
# option httpchk HEAD /favicon.ico
server f4 172.31.9.133:80 check inter 1000
#跑起來
#sudo /home/youholder/script/restart-haproxy.sh
#內容
#/usr/local/sbin/haproxy -D -f /etc/haproxy.cfg -p /var/run/haproxy.pid -sf `cat /var/run/haproxy.pid`
# restart apache server
/etc/init.d/httpd restart
#apache log 在這
tail -f /var/log/httpd/error_log
#看ip
/sbin/ifconfig
#/etc/httpd/conf/httpd.conf
ServerAdmin ad@goyou.com.tw
ServerName ad.goyou.com.tw
DocumentRoot /home/goadmin/ad_deploy/public
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6
PassengerRuby /usr/local/bin/ruby
development:
adapter: mysql
database: ad_server
username: root
password: hiroot
host: 127.0.0.1
port: 4040
encoding: utf8
production:
adapter: mysql
database: ad_server
username: root
password: hiroot
host: 127.0.0.1
port: 4040
encoding: utf8
/etc/hosts
127.0.0.1 f4 localhost.localdomain localhost
mysql -uroot -phiroot -h127.0.0.1 -P4040
telnet localhost 80
GET / HTTP/1.0
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言