skip to main
|
skip to sidebar
memo temp
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)
state chart
eb
關於我自己
Lake
檢視我的完整簡介
pie chart
網誌存檔
►
2010
(1)
►
11月
(1)
►
2009
(26)
►
1月
(26)
▼
2008
(26)
▼
12月
(26)
[HTML] IE 表單 Enter 的 Bug
ruby memo
rails default mode
deploy
Gem dependencies
liquid,dynamic content
All About Layouts
rails 2.2 extra, delegate,gem
each_with_object,inject
header, redirect_to , render js, polymorphic_path
Rescue from dispatching, layout mailer
Shallow Routes, Resources With Specific Actions
etag,last_modified,Get
rails, thread-safe
alias_method_chain
rails2.2 extra, dynamic finder
join,include
sql,DATE,group by
Block in views, concat, capture, content_for,yield...
memoizable,rails2.2
overwrite attr_writer,=
rails I18n sample
rails execute sql
jquery parse xml
google ajax library api
using jquery in rails,jquery, rails,form,reset,esc...
沒有留言:
張貼留言