cheap medications premarin 1.25mg tablets estrogen contents, cheap medications buy wellbutrin no rx needed, cheap online buy baclofen online, cheap online order flagyl er pay pal online without prescription, pharmacy cheapest where to buy buy doxycycline online, online cheap medications buy overnight delivery lasix fedex, buy cheap purchase diflucan, cheap online buy neurontin online overnight cod, cheap pharmacy fedex acyclovir overnight without a rx, order cheap what is norvasc, buying cheap buy arimidex free consultation,

存档

‘Web Server’ 分类的存档

Tomcat Cluster on DC/OS

2018年7月7日 没有评论

基本思路和做法:

把Tomcat放到Docker里,然后由DC/OS调度Tomcat容器集群运行、管理。

Tomcat 8 集群架构

tomcat-cluster-dcos-01

tomcat-cluster-dcos-02

https://github.com/docker-library/tomcat

https://github.com/dcos/examples/tree/master/tomcat/

先运行三个Tomcat实例

tomcat-cluster-dcos-03

通过Marathon-LB可以实现多个Tomcat节点的负载均衡。在下述示例中,我们部署3个Tomcat应用服务,每个Tomcat应用服务公开8080端口,然后通过Marathon-LB的10010端口统一对外提供服务。

多个Tomcat实例通过端口portDefinitionsHAPROXY_GROUP标签定义与Public Agent节点上的Marathon-LB进行绑定。

tomcat-cluster-dcos-04

现在已有的的HAProxy标签组

tomcat-cluster-dcos-05

给Tomcat加上标签

tomcat-cluster-dcos-06

3个Tomcat实例会重新部署。


分类: Java, Mesos & DC/OS, 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 (同上)