Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4166327
  • 博文数量: 291
  • 博客积分: 8003
  • 博客等级: 大校
  • 技术积分: 4275
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-30 18:28
文章分类

全部博文(291)

文章存档

2017年(1)

2013年(47)

2012年(115)

2011年(121)

2010年(7)

分类: 系统运维

2011-06-21 16:37:54

0.安装依赖软件
 1)GNU make (gmake).
 2)ZeroMQ 2.1.4 for the messaging.
 
  1. wget
  2. tar -xzvf zeromq-2.1.7.tar.gz
  3. cd zeromq-2.1.7/
  4. ./configure
  5. make
  6. sudo make install

 3)SQLite3.
  
  1. wget
  2. tar -zxvf sqlite-autoconf-3070603.tar.gz
  3. cd sqlite-autoconf-3070603
  4. ./configure
  5. make;make install;
  6. echo "//usr/local/lib" >> /etc/ld.so.conf
  7. ldconfig
 
1.下载
 
2.安装
  1. tar -jxvf mongrel2-1.7.3.tar.bz2
  2. cd mongrel2-1.7.3
  3. vi Makefile
  4. 把第二行LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)改为LIBS=-lzmq -ldl -lsqlite3 -L/usr/local/lib $(OPTLIBS)
  5. make all install
3.运行
  1. mkdir run logs tmp
  2. m2sh start -host localhost
4.访问
echo "test" > tests/index.html
wget
5.配置
  1. [root@localhost mongrel2-1.7.3]# sqlite3 config.sqlite
  2. SQLite version 3.7.6.3
  3. Enter ".help" for instructions
  4. Enter SQL statements terminated with a ";"
  5. sqlite> .table
  6. directory host mimetype route setting
  7. handler log proxy server statistic
  8. sqlite> select * from server;
  9. 1|f400bf85-4538-4f7a-8908-67e313d515c2|/logs/access.log|/logs/error.log|./|/run/mongrel2.pid|localhost|test|0.0.0.0|6767|0
end
 
阅读(1566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~