Directspace 的Debian 6因为缺少LBS,安装软件时会提示一下错误:
insserv: warning: script ‘S10vzquota’ missing LSB tags and overrides
insserv: warning: script ‘vzquota’ missing LSB tags and overrides
insserv: There is a loop between service vzquota and rmnologin if started
insserv:??loop involving service rmnologin at depth 3
insserv:??loop involving service vzquota at depth 2
insserv:??loop involving service rsyslog at depth 1
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: There is a loop between service vzquota and rmnologin if started
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing screen (–configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports

解决方法:
编辑/etc/init.d/vzquota
在start(){? ?前面添加如下内容:继续阅读

GNU/Linux 领域重要的发行版 Debian 终于发布了 Debian 6 “Squeeze” 版本。

Debian 6.0 更新了如下组件:

  • KDE 4.4.5
  • GNOME 2.30
  • Xfce 4.6
  • LXDE 0.5.0
  • X.Org 7.5
  • OpenOffice.org 3.2.1
  • GIMP 2.6.11
  • Iceweasel 3.5.16 (无 Mozilla 商标版本 Firefox)
  • Icedove 3.0.11 (无 Mozilla 商标版本 Thunderbird)
  • PostgreSQL 8.4.6
  • MySQL 5.1.49
  • GNU Compiler Collection 4.4.5
  • Linux 2.6.32
  • Apache 2.2.16
  • Samba 3.5.6
  • Python 2.6.6, 2.5.5 及 3.1.3
  • Perl 5.10.1
  • PHP 5.3.3
  • Asterisk 1.6.2.9
  • Nagios 3.2.3
  • Xen Hypervisor 4.0.1 (dom0 及 domU 支持)
  • OpenJDK 6b18
  • Tomcat 6.0.18

同时,Debian 官网也进行了改版。

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: Debian GNU/Linux 6.0.0 "Squeeze"

要在众多Debian源中选出最快的镜像,Debian确实很方便.有apt-spy这个工具

  1. 安装
    apt-get install apt-spy
  2. 更新源列表
    apt-spy update
  3. 寻找最快的北美镜像
    apt-spy -d lenny -a North-America

    -d 参数是Debian当前系统的发行代号, -a 就是区域

    其他区域可以用 man apt-spy的帮助手册查询

    Africa', Asia’, Europe', North-America’, Oceania' and South-America’

    不指定的话当然就搜索全球的镜像 比较慢

  4. 最快的镜像地址保存在 /etc/apt/sources.list.d/apt-spy.list 中

    如果你使用YardVPS或者HostRail 那么你可以直接使用

    mirror.peer1.net 的源 YardVPS可以达到6M/s ,而HostRail也能达到4M/s的下载速度

举个栗子

deb http://mirror.peer1.net/debian lenny main contrib non-free
deb http://mirror.peer1.net/debian-security lenny/updates main contrib non-free

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: 为北美VPS寻找最快Debian源

重装了VPS,选用debian?6 32bit 安装免费版的 Litespeed 。

  1. 安装编译所需的程序以及mysql server 5.1
    apt-get install patch make gcc g++ autoconf2.13 libxml2-dev mysql-server zlib-bin zlib1g-dev libjpeg62-dev libpng12-dev libmysql++-dev mcrypt curl libcurl4-openssl-dev libmcrypt-dev libmhash-dev libfreetype6-devexport PHP_AUTOCONF=/usr/bin/autoconf-2.13
    export PHP_AUTOHEADER=/usr/bin/autoheader-2.13
    只有用2.13版的autoconf才能正确编译php,否则会出错
  2. 下载编译 linux x86版 Litespeed
    wget http://www.litespeedtech.com/packages/4.0/lsws-4.0.20-std-i386-linux.tar.gz
    tar xvf lsws-4.0.20-std-i386-linux.tar.gz
    cd lsws-4.0.20
    ./install.sh

    1. 出现许可协议按空格键,然后输入Yes接受协议:Do you agree with abot license ? 输入 Yes
    2. 询问LiteSpeed安装路径?可直接回车默认Destination [/usr/local/lsws]:
    3. 管理员用户名,回车使用默认adminUser name [admin]:接着输入两次管理员密码
    4. 管理员邮箱,如果回车使用默认:Email address [root@localhost]:
    5. LiteSpeed用户及组,回车使用默认即可:User [nobody]:Group [nogroup]:
    6. web服务端口,网站服务为80HTTP PORT [8088]:80
    7. 管理程序服务端口,默认为7080,直接回车即可Admin HTTP port [7080]:
    8. 是否安装phpSetup up PHP [Y/n]:Y
    9. 是否安装AWSatas ? NWould you like to install AWStats Add-on module [y/N]?N
    10. 是否设置litespeed为开机自动启动,YWould you lite to have LiteSpeed Web Server started automaticallywhen the server restarts [Y/n]?
    11. 安装完成后,是否启动,Y[OK] The startup script has been successfully installed!Would you like to start it right now [Y/n]?

    接着Litespeed成功运行

  3. 编译php进入管理后台 http://youdomain:7080 用刚才设置的帐号密码登入
    1. 在管理菜单选择 Actions->Compile PHP
    2. php5版本 选 5.3.5 Next
    3. Configure Parameters中,输入
      ‘–with-mysql’ ‘–with-mysqli’ ‘–with-zlib’ ‘–with-gd’ ‘–enable-shmop’ ‘–enable-track-vars’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–with-iconv’ ‘–with-litespeed’ ‘–enable-inline-optimization’ ‘–with-curl’ ‘–with-curlwrappers’ ‘–with-mcrypt’ ‘–with-mhash’ ‘–with-mime-magic’ ‘–with-openssl’ ‘–with-freetype-dir=/usr/lib’ ‘–with-jpeg-dir=/usr/lib’Add-on Modules 看需要勾选,这里我编译了APC,当前版本为3.1.16
      点 build PHP 5.3.5
      下一步会在后台下载所需源代码,解压,打补丁。不要刷新,静静等待出现Next
    4. 会给您一行代码,您需要在ssh里面运行:
      /usr/local/lsws/phpbuild/buildphp_manual_run.sh
      慢慢等待,如果不缺少头文件或库文件的话,会顺利编译通过
      Detailed Log:最后出现 **COMPLETE** 的时候 表示编译完成
      如果没有成功,也在Detailed Log: 中寻找问题,一般来说编译不成功都是缺少依赖文件。
      实在找不到的时候,可以google或给我留言
    5. 管理菜单中,选择Actions->Graceful Restart,来重启web服务
    6. 访问http://youdomain/phpinfo.php成功的话将会列出php信息
  4. 安装phpMyAdmin在phpmyadmin官网下载最新版,解压到/usr/local/lsws/DEFAULT/html/重命名之后即可以通过 http://youdomain/phpmyadmin/index.php 进行管理
  5. 开启apc在/usr/local/lsws/lsphp5/lib/ 目录新建一个php.ini文件,重启服务后将会引入这个配置文件
    [apc]
    extension=apc.so
    apc.shm_size = 16M
    重启,查看phpinfo中APC是否正确开启,将在下篇中介绍一些APC的配置和使用

好了,一个高性能,同时兼容apache配置的web服务器建好了,等我用用之后再写一篇应用配置。感谢收看。

*修订版 1
添加了GD库中 freetype和jpeg的支持

*修订版 2
系统升级到Debian 6
Mysql升级到5.1
Litespeed 升级到4.0.20
php升级到5.3.5

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: 在Debian 中安装 Litespeed (第一次修订)

安装mysql

apt-get install mysql-server

安装php

apt-get install php5-common php5-cgi php5-mysql php5-curl php5-gd php5-imagick php5-mcrypt  php5-sqlite php-apc

安装Nginx

apt-get install nginx

安装spawn-fcgi

$wget http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.gz
$tar -xvf spawn-fcgi-1.6.3.tar.gz
$cd spawn-fcgi-1.6.3
$./configure –prefix=/usr
$make

$sudo make install

启动php5-cgi
$spawn-fcgi -a 127.0.0.1 -p 9000  -u www-data -g www-data -f /usr/bin/php5-cgi

配置Nginx

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: Debian5 安装Nginx+php(spawn-fcgi) + Mysql