分类:linux

gentoo上安装git

gentoo上安装git
# USE=”-dso” emerge -av dev-vcs/git
# emacs /etc/conf.d/git-daemon
GITDAEMON_OPTS=”–syslog –enable=upload-pack –enable=upload-archive –enable=receive-pack –export-all –base-path=/opt/git /opt/git”

#chown nobody.nobody /opt/git

查看详情

gentoo上用nginx+mongrel_cluster来运行rails

主要是最近项目要用redmine,所以在我的gentoo上折腾了一下
以前的笔记,参考的文章找不到了,只留下了我的操作记录
# mkdir -p /etc/mongrel_cluster
# ln -s /etc/mongrel_cluster/redmine.yml /app/www/redmine.domain.com/htdocs/config/mongrel_cluster.yml
# cp /usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/resources/mongrel_cluster /etc/init.d/
# chmod +x /etc/init.d/mongrel_cluster
# mongrel_rails cluster::configure -e production -p 9000 -N 3 -c /app/www/redmine.domain.com/htdocs/ –user www-data –group www-data -C /etc/mongrel_cluster/redmine.yml
# chown -R www-data.www-data /app/www/redmine.domain.com/

查看详情

pure-ftpd在linux上的安装

本来是想emerge 的,但是很久没有更新portage树了,老版本的1.0.28下不下来,就自己手动编译了1.0.30
这个比vsftpd好的地方是可以单个控制每个ip和每个client的带宽,不过安装的时候比较费劲,网上大部分文章多少都讲得不清楚,自己装了2遍
第一遍编译的时候没有加上限制带宽的参数

查看详情