visit online pharmacy and buy norvasc online, after that buy cheap wellbutrin online no prescription, and cheapest valtrex no prescription. Get your discount in pharmacy when buy arimidex online, and buy lasix without prescription. Make sure your are secure when you buy neurontin online without prescription, and buying cheap retin-a no prescription online. Best place to order flagyl online without prescription, and order cheap zovirax online no prescription, and order cheap zovirax no prescription. Go to the best pharmacy online to buy baclofen online, and purchase clomid online with no prescription, and buy diflucan without a prescription online, and purchase with no prescription premarin 15 mg online. Get a discount when buy doxycycline online no prescription, and buy cheap acyclovir online no prescription
buy online retin-a overnight without rx, and buy cheap amoxil purchased online without prescription, and buying cheap premarin with free fedex overnight, and buying cheap diflucan (fluconazole) cod saturday delivery, and buy online taking too much synthroid medication, and cheap pharmacy clomid twin, and purchase with no prescription order zovirax (acyclovir) creditcard, and order online buy generic wellbutrin cheap no membership, and cheap online will generic available valtrex in toronto, and cheap pharmacy order cheap order propecia online, and order online no prescription hydrochlorothiazide online pharmacy, and pharmacy cheapest accutane ultrum, and pharmacy cheapest cheap doxycycline without rx, and ordering online where to buy norvasc, and buy cheapest prozac for sale cod, and buy online where can i buy flagyl online, and buying cheap acyclovir xr purchase online cheap, and purchase with no prescription forum paxil, and ordering online best buy lipitor, and buy cheapest arimidex buy without a prescription, and pharmacy cheapest bactrim overnight delivery cheap, and generic medications buy neurontin online no membership, and order cheap baclofen side effects, and order online price zithromax, and pharmacy cheapest where to buy lasix without a prescription, and

存档

‘Web Server’ 分类的存档

安装 BitNami Trac Stack

2008年3月23日 没有评论

通过安装BitNami Trac Stack快速体验Trac, 通常安装Trac会比较麻烦, 而BitNami Trac Stack提供了一站式的安装服务. 我曾在 CentOS 5上试着安装Trac, 但因过程的麻烦而放弃.而今天我用BitNami Trac Stack,不到几分钟就安装好了Trac.其图形化的安装过程让人也倍感亲切.当然同时也提供命令行的安装方式.

BitNami Trac Stack包含以下软件包:
– Trac 0.10.4
– Apache 2.0.63
– SQLite 3.5.1
– Python 2.5.1
– Subversion 1.4.6

基本操作有:
./ctlscript.sh (start|stop|restart)
./ctlscript.sh (start|stop|restart) subversion
./ctlscript.sh (start|stop|restart) apache

导入新项目, 如: svn import mercurial-0.9.5 file:///opt/trac-0.10.4-4/repository -m “imital mercurial”

这时可通过 http://localhost/trac/Project/browser 浏览导入的项目

分类: Developers, Python, Web Server 标签:

SUN Cool Stack

2007年4月17日 没有评论

SUN Cool Stack is a collection of commonly used Open Source software optimized for the Sun Solaris OS / UltraSPARC platform (using Sun Studio 11 compilers) for the best out-of-the-box performance. The Open Source apps included are: Apache, MySQL, Perl, PHP, Squid and Tomcat.

Source:  Optimized Open Source Software Stack (Cool Stack)

分类: Oracle & SUN & BEA, Web Server 标签:

SUN 以 Solaris + AMP(SAMP) 迎战 LAMP

2007年2月23日 没有评论

SUN 已经开始积极支持 Apache, MySQL, PHP ,以求将 LAMP 组合中的 Linux 替换掉,换上自己的Solairs ,并打造一个全新组合: SAMP

SUN 这一计划看上去蛮不错的,但要撼动 LAMP 组合也并非易事。

一些应用组合:

  • L2MP(Linux + Lighttpd + MySQL + Python/PHP/Perl)
  • FLMP(FreeBSD + Lighttpd + MySQL + Python/PHP/Perl)
  • FAMP(FreeBSD + Apache + MySQL + Python/PHP/Perl)
  • SLMP(Solaris + Lighttpd + MySQL + Python/PHP/Perl)
分类: Oracle & SUN & BEA, Web Server 标签:

在 Ubuntu 5.04(FreeBSD 5.5)上安装 Ruby, Rails, Lighttpd, MySQL

2006年7月7日 2 条评论

此方法也适用于其它Linux,UNIX和BSD系统, 大家只需要修改其中的一些步骤。

// 安装 readline
wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
tar xzvf readline-5.1.tar.gz
cd readline-5.1
./configure –prefix=/usr/local
make
sudo make install
cd ..

// 安装 ruby
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz
tar xzvf ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure –prefix=/usr/local –enable-pthread –with-readline-dir=/usr/local
make
sudo make install
cd ..

// 安装 ruby-zlib
wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz
tar zxvf ruby-zlib-0.6.0.tar.gz
cd ruby-zlib-0.6.0
/usr/local/bin/ruby extconf.rb
make
sudo make install

// 安装 rubygems
wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar xzvf rubygems-0.8.11.tgz
cd rubygems-0.8.11
sudo /usr/local/bin/ruby setup.rb
cd ..

// 安装 Ruby on Rails
sudo /usr/local/bin/gem install rails –include-dependencies

// install FastCGI
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure –prefix=/usr/local
make
sudo make install
cd ..

// 添加 Ruby-FastCGI 绑定
wget http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
tar xzvf ruby-fcgi-0.8.6.tar.gz
cd ruby-fcgi-0.8.6
/usr/local/bin/ruby install.rb config –prefix=/usr/local
/usr/local/bin/ruby install.rb setup
sudo /usr/local/bin/ruby install.rb install
cd ..

sudo /usr/local/bin/gem install fcgi

// 安装 PCRE
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-6.6.tar.gz
tar xzvf pcre-6.6.tar.gz
cd pcre-6.6
./configure –prefix=/usr/local CFLAGS=-O1
make
sudo make install
cd ..

// 安装 lighttpd
wget http://lighttpd.net/download/lighttpd-1.4.11.tar.gz
tar xzvf lighttpd-1.4.11.tar.gz
cd lighttpd-1.4.11
./configure –prefix=/usr/local –with-pcre=/usr/local
make
sudo make install
cd ..

// 安装 mysql
省略 MySQL 的安装

// 绑定 mysql
sudo gem install mysql — –with-mysql-dir=/usr/local/mysql
Select which gem to install for your platform (i686-linux)
1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation

> 2 // 选择2

make install
mkdir -p /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib
/usr/bin/install -c -m 0755 mysql.so /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib
Successfully installed mysql-2.7

// 创建第一个Ruby on Rails应用
sudo mkdir /usr/local/ruby
sudo /usr/local/bin/rails usr/local/ruby/application
cd usr/local/ruby/application
sudo /usr/local/bin/ruby script/server

cp usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/configs/lighttpd.conf to /usr/local/ruby/application/config 并修改 lighttpd.conf

启动 ruby
ruby script/server
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on http://127.0.0.1:80
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)

此时启动了 Lighttpd web server
http://localhost

OK 一切顺利,Ruby 的环境安装好了。

——————————–
在 FreeBSD 5.5 上主要是 FastCGI 的安装有些不同,其它步骤和方法均保持不变

Install fcgi-devkit:
cd /usr/ports/www/fcgi
make install

cd ruby-fcgi-0.8.6
ruby install.rb config — \
–with-fcgi-include=/usr/local/include \
–with-fcgi-lib=/usr/local/lib
ruby install.rb setup
ruby install.rb install

这些步骤也在 FreeBSD 5.5 测试通过 :)
参考:Building Ruby, Rails, LightTPD, and MySQL on Tiger

在 FreeBSD 5.5, 6.1 上安装 Lighttpd,PHP,MySQL

2006年6月22日 没有评论

今天在一台跑 FreeBSD 5.5 的 Intel 至强服务器上成功安装 MySQL,PHP,Lighttpd等软件包, 现整理如下与大家分享. 随后还有在FreeBSD 上 Java 系统的安装等. (注意: 在FreeBSD下有 Packages , Ports 两种安装软件包的方式供用户选择)
1. install mysql 4.1 mysql41-client // version is 4.1.18

pkg_add -r mysql41-server
pkg_add -r mysql41-client

/usr/local/bin/mysql_install_db
chown -R mysql /var/db/mysql/
chgrp -R mysql /var/db/mysql/
/usr/local/bin/mysqld_safe -user=mysql &
/usr/local/bin/mysqladmin -u root password ‘newpassword’

2. install php4,并support fastcgi
cd /usr/ports/distfiles
fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/php-4.4.2.tar.bz2
or http://download.freelamp.com/LAMP/
bunzip2 php-4.4.2.tar.bz2
tar xvf php-4.4.2.tar
./configure –enable-fastcgi –enable-force-cgi-redirect
make
make install

php -v
PHP 4.4.2 (cgi-fcgi) (built: Jun 23 2006 01:26:36)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

3. bind php4 and mysql (这步有问题,mysql的库总加载不上)
cd /usr/ports/databases/php4-mysql
make
make install

The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:
extension=mysql.so

4. install lighttpd
pkg_add -r lighttpd

touch /var/log/lighttpd.error.log
touch /var/log/lighttpd.access.log
chown www:www /var/log/lighttpd.*

config php.ini, lighttpd.conf
# cd /usr/local/etc/
# cp lighttpd.conf.sample lighttpd.conf
# cp php.ini-recommended php.ini
修改 lighttpd.conf
server.modules = (
“mod_access”,
“mod_fastcgi”,
“mod_accesslog” )

server.document-root = “/usr/local/www/demo/”

fastcgi.server = ( “.php” =>
( “localhost” =>
(
“socket” => “/tmp/php-fastcgi.socket”,
“bin-path” => “/usr/local/bin” )))

测试:
touch test.php
phpinfo();
?>

# /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf
或者
Usage: /usr/local/etc/rc.d/lighttpd [fast|force|one](start|stop|restart|rcvar|status|poll)
http://localhost/test.php
OK :)

————————————
在 FreeBSD 6.1 上安装 Lightttpd,PHP, MySQL 过程异常简单
1. install mysql 5
# cd /usr/ports/databases/mysql5-server
# make install
后面步骤同上
2. install php5
下载ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/php-5.1.2.tar.bz2
后面步骤同上
3. bind php5 and mysql (mysql的库加载成功)
cd /usr/ports/databases/php5-mysql
make
make install
4. install lighttpd (同上)

lighttpd,thttpd,shttpd – 轻量级WebServer介绍

2006年6月19日 2 条评论

转自 Zhiqiang::He 博客.

国内绝大部分的web server不是IIS就是Apache,而论市场占有率,我认为Apache是大赢家了,至少是占据了半壁江山。

但除了IIS/Apache外,其实我们有很多选择,对于高负载/大并发的网站而言,高性能、轻量级的web server是一剂良药。最近手头一台Server 的负载太高,居然将swap吃光导致机器非常缓慢,后来一查,原来是Apache耗掉了几乎所有资源,当时apache进程已有9XX个了。

于是用轻量级的web server替换掉apache就进入了日程表。这里顺带介绍一下这些可选的对象:
lighttpd | thttpd | shttpd

lighttpd

官方主页:www.lighttpd.net

Lighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。lighttpd是众多OpenSource轻量级的web server中较为优秀的一个。支持FastCGI, CGI, Auth, 输出压缩(output compress), URL重写, Alias等重要功能,而Apache之所以流行,很大程度也是因为功能丰富,在lighttpd上很多功能都有相应的实现了,这点对于apache的用 户是非常重要的,因为迁移到lighttpd就必须面对这些问题。

在google搜索了一下,简体中文介绍lighttpd的文章几乎没有,大多数都是台湾同胞的Big5内容。因此在接下来的时间里,想好好写一篇介绍lighttpd,以及简单的benchmark的文章。

实用起来lighttpd确实非常不错,上文提到的apache overload的问题,用lighttpd就完全解决了。apache主要的问题是密集并发下,不断的fork()和切换,以及较高(相对于 lighttpd而言)的内存占用,使系统的资源几尽枯竭。而lighttpd采用了Multiplex技术,代码经过优化,体积非常小,资源占用很低, 而且反应速度相当快。

利用apache的rewrite技术,将繁重的cgi/fastcgi任务交给lighttpd来完成,充分利用两者的优点,现在那台服务器的负载下降了一个数量级,而且反应速度也提高了一个甚至是2个数量级!

thttpd

官方网站:http://www.acme.com/software/thttpd/
thttpd是一个非常小巧的轻量级web server,它非常非常简单,仅仅提供了HTTP/1.1和简单的CGI支持,在其官方网站上有一个与其他web server(如Apache, Zeus等)的对比图+Benchmark,可以参考参考。此外,thttpd 也类似于lighttpd,对于并发请求不使用fork()来派生子进程处理,而是采用多路复用(Multiplex)技术来实现。因此效能很好。

Thttpd支持多种平台,如FreeBSD, SunOS, Solaris, BSD, Linux, OSF等。对于小型web server而言,速度快似乎是一个代名词,通过官方站提供的Benchmark,可以这样认为:thttpd至少和主流的web server一样快,在高负载下更快,因为其资源占用小的缘故。

Thttpd还有一个较为引人注目的特点:基于URL的文件流量限制,这对于下载的流量控制而言是非常方便的。象Apache就必须使用插件实现,效率较thttpd低。

shttpd

官方网站:http://shttpd.sourceforge.net/ Shttpd是另一个轻量级的web server,具有比thttpd更丰富的功能特性,支持CGI, SSL, cookie, MD5认证, 还能嵌入(embedded)到现有的软件里。最有意思的是不需要配置文件!由于shttpd可以嵌入其他软件,因此可以非常容易的开发嵌入式系统的web server,官方网站上称shttpd如果使用uclibc/dielibc(libc的简化子集)则开销将非常非常低。以下是其特点:

Stand-alone server, or embeddable into existing C/C++ program
GET, POST, PUT, DELETE methods
CGI
SSL
Digest (MD5) authorization
Multiple (and user defineable) index files
Directory listing
Standard logging
Cookies
inetd mode
User-defineable mime types
No configuration files
No external dependencies

由于shttpd可以轻松嵌入其他程序里,因此shttpd是较为理想的web server开发原形,开发人员可以基于shttpd开发出自己的webserver

分类: Web Server 标签: