- 浏览: 48711 次
- 性别:
- 来自: 南京
最新评论
-
nathan.wu:
gem install thinas far as i kno ...
new rails app server thin -
crag:
兄弟,来点详细点的安装、配置介绍呀
new rails app server thin
文章列表
1.apt-get install shorewall
2.
cp /usr/share/doc/shorewall/default-config/policy /etc/shorewall/policy
cp /usr/share/doc/shorewall/default-config/rules /etc/shorewall/rules
cp /usr/share/doc/shorewall/default-config/interfaces /etc/shorewall/interfaces
cp /usr/share/doc/shorewall/default-config/zone ...
- 2008-05-05 23:06
- 浏览 1471
- 评论(0)
ok first how can we get load average info from linux
use uptime cmd also you can get that info by top cmd
the output will be:
19:11:40 up 6 days, 3:04, 2 users, load average: 5.55, 3.17, 2.34
the load average have three numbers each numbers mean 1min,5mins,15mins
and the definition of load averag ...
- 2008-04-28 19:32
- 浏览 1075
- 评论(0)
today I decide setup soft raid with my new 1u box
the hardware config is:
amd 4400 cpu 64bit
harddisk 2 * sata 250g
8gb ram
finally I decide to setup ubuntu 7.10 on my box
though gentoo maybe good for performance
the reason that I didn't choose gentoo for my production env cos
1. maybe need too much ...
- 2008-04-26 00:52
- 浏览 1078
- 评论(0)
rails action cache can help performance a lot
but there is a drawback with action cache, it just can output text/html header content-type, eg: can not output text/xml header content-type for your blog rss feed.
I think there may need a hacker with reverse proxy server like nginx.
the config will l ...
- 2008-04-24 01:56
- 浏览 1059
- 评论(0)
centos 5 x86 default do not support 4gb memory
there is a way to solve that
try to install kernel with PAE support
cmd:
yum install kernel-PAE kernel-PAE-devel
changing one line in /etc/grub.conf
then reboot your server
- 2008-04-22 16:22
- 浏览 1173
- 评论(0)
rails performance optimization
1.Algorithmic improvements always beat code tweaks
2.As a general rule, maintainability beats performance
3.Only optimize what matters
4.Measure twice, cut once
I think second one may conflict link_to helper methods
somebody said replace link_to with real <a href=&q ...
- 2008-04-22 03:01
- 浏览 788
- 评论(0)
gem install thin
new rails app server thin
thin is better than mongrel, cos it use event-machine with mongrel c parse engine
also you can use thin with nginx
http://www.51cnnet.net/ebook/3-ajax-on-rails
http://www.51cnnet.net/ebook/8-rails-recipes
http://www.51cnnet.net/ebook/11-the-rails-way
http://www.51cnnet.net/ebook/38-rubyisms-in-rails
http://www.51cnnet.net/ebook/88-ruby-for-rails
http://www.51cnnet.net/ebook/16-rails-solutions-ruby-on-rails-made-e ...
How to truncate a log file using Linux
Have you ever wanted to truncate a log file that was being written to by a running process without stopping the process to do so?
If so then all you need is the following to clear out the active log file:
cat /dev/null > some_log_file.log
- 2008-02-17 12:37
- 浏览 850
- 评论(0)
CFLAGS="-O3 -mpentiumpro -fomit-frame-pointer -pipe" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer -pipe" ./configure --prefix=/home/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-charset=utf8 --with-colla ...
- 2008-01-27 01:54
- 浏览 902
- 评论(0)
cd your [rails app dir]
if your system is win
ruby script\plugin install svn://errtheblog.com/svn/plugins/classic_pagination
i have problem with classic_pagination
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependenci
es.rb:266:in `load_missing_constant': uninitialized co ...
- 2007-12-27 15:46
- 浏览 1241
- 评论(0)
one day you feel that your server slow down.
ping timeout occasionally
and users have report that they encountered virus when they visit your site.
how to detect arp spoofing on your server? and how to solve arp spoofing problem?
you need install arpwatch
use yum or apt-get
then use cmd:
arpwatch - ...
- 2007-11-19 01:35
- 浏览 935
- 评论(0)
better late then never
hehe
a lot of stuff to learn and read
- 2007-11-13 15:18
- 浏览 560
- 评论(0)
sudo apt-get install vim-ruby
cp /usr/share/vim/vim70/vimrc_example.vim ~/.vimrc
and you need set your term=xterm
colorful can not work with vt100
enjoy it
- 2007-11-02 22:36
- 浏览 1038
- 评论(0)