eaccelerator 安装

[不指定 2010/06/01 16:37 | by Totti ]
http://eaccelerator.net/wiki/InstallFromSource

When you have only one php install, it's safe to run these commands in the source directory:

phpize
./configure
make

The phpize and php-config are the ones that are in your path. When you have more then one php install or the phpize and php-config scripts aren't in your path then you should follow this procedure. This example has php installed in /opt/php, this is the path of the --prefix option given to the php configuration script.

export PHP_PREFIX="/opt/php"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make

For more information about the options for the configure script you should read the CompileConfiguration page.

After compilation, there should be a "eaccelerator.so" file in the modules subdirectory of the eAccelerator source directory.
Step 2. Installing eAccelerator ¶

make install

This will copy the previously created eAccelerator binary to the php extension directory. When this command ends, it will print out the directory in which eAccelerator has been installed.
Step 3. Configuring eAccelerator ¶

eAccelerator can be installed both as Zend or PHP extension. When you install eAccelerator as a zend_extension you need to give the full path to the eaccelerator.so library.

If you have /etc/php.d directory, you should copy eaccelerator.ini to it and modify the default values. If not, you need to edit your php.ini file (usually /etc/php.ini).

To install as Zend extension:

zend_extension="/usr/lib/php4/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

If you use a thread safe build of PHP you must use "zend_extension_ts" instead of "zend_extension".

To install as PHP extension:

extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

Step 4. Creating cache directory

One last very important step is creating the cache directory that you configured in the previous step. The default value is /tmp/eaccelerator It's easy because it's writable to everyone, but it isn't very smart because on a lot of systems this directory is cleaned on reboot. A better place would be /var/cache/eaccelerator. Create the directory and make sure it's writable for the user eAccelerator runs under (usually the user which you webserver runs as).

A safe bet is making it world writable. A safer and cleaner way would be to change the owner of the directory to the same user PHP runs as (most of the time the same user as Apache or Lighttpd) and set 0644 permissions.

The lazy way:

mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator

MidpSSH——移动SSH客户端软件

[不指定 2010/06/01 09:10 | by Totti ]
MidpSSH是一SSH和Telnet客户端软件,可运行于MIDP 1.0 / 2.0 (J2ME) 设备上,例如 Java兼容的手机或其它移动设备等。MidpSSH 基于GPL发布,网址 www.xk72.com

MidpSSH支持 SSH1,Telnet和VT320 终端模拟,1.2+ 包括加密算法,支持SSH2 key交换。最新版本1.6支持键盘交互和代理服务器。

MidpSSH的作用

在移动终端上提供SSH和Telnet。对那些在任何地方需要登陆服务器的特别方便,不再需要找一台可以上网的电脑。需要指出的是,因为一般移动终端屏幕较小,连接也比较慢,所以不适合持久使用。

安装

可以通过http://xk72.com/wap直接上网下载安装,或者管理器安装

P.S.按官网的说明,支持绝大部分黑莓手机
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]