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.按官网的说明,支持绝大部分黑莓手机
服务器不重启的情况下定时自动重启apache及mysql服务,其实也大同小异。具体步骤如下:
一、每天的12点及16点重启apache及mysql服务
[root@www bin]# cd /opt/
[root@www opt]# vim reboot.txt
在reboot.txt.txt文件中输入下面的内容后保存
0 12 * * * service httpd restart
0 12 * * * service mysqld restart
0 16 * * * service httpd restart
0 16 * * * service mysqld restart
二、把新建的文件加入到cron服务中
[root@www opt]# crontab reboot.txt
[root@www opt]# crontab -l
0 12 * * * service httpd restart
0 12 * * * service mysqld restart
0 16 * * * service httpd restart
0 16 * * * service mysqld restart
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
#skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=64M ## 32MB for every 1GB of RAM
query_cache_type=1
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
key_buffer=128M ## 64MB for every 1GB of RAM
join_buffer=1M
max_connect_errors=20
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M ## 1MB for every 1GB of RAM
read_buffer_size=2M ## 1MB for every 1GB of RAM
read_rnd_buffer_size=2M  ## 1MB for every 1GB of RAM
thread_concurrency=2 ## Number of CPUs x 2
myisam_sort_buffer_size=64M
server-id=1
log_slow_queries=/var/log/mysql-slow-queries.log
long_query_time=2
collation-server=latin1_general_ci
old-passwords

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

Centos 上安装kloxo

[不指定 2010/05/19 12:22 | by Totti ]
CentOS是附带了httpd的unix版本,安装需要干净的系统,所以在装之前要反安装 httpd,php,mysql这些web组件。

yum remove httpd* php* mysql* -y


确定防火墙开启了7778和7777端口,以便打开kloxo。

Make sure that you open the ports 7778 and 7777 in the firewall. Otherwise you won't be able to connect to kloxo.

vi /etc/sysconfig/selinux 编辑,设置selinux=disabled,重启

You have to disable selinux by editing /etc/sysconfig/selinux and changing the line to selinux=disabled and then running

参考文档:http://wiki.lxcenter.org/Kloxo+Installation+Guide

命令:
# $ wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh
# $ sh ./kloxo-installer.sh --type=master


Centso下安装Kloxo出现YUM Gave Error… Trying Again的解决办法
Harry  3/20/2014 3:55:05 PM
在Centos下载安装Kloxo ,在安装过程中有可能出现YUM Gave Error… Trying Again 这样的错误,
发生这个错误的原因有3种
1,使用了64位的centos安装kloxo
2,使用了centos 6或者6以上版本安装kloxo (Kloxo 目前只能运行在 32 位的 CentOS 5或者5.X)
3,上面两则都不是但是还是出现错误:大多情况是kloxo安装到一半失败了,继续重装出现这个错误,出现这个错误的原因是:kloxo安装到一半的时候/etc/php.ini已被做了一些安装设置禁用了system这个函数。
解决方法:/etc/php.ini 里面找到 disable_functions 那几行全部注释掉就是在前面加一个分号。
然后重装开始安装kloxo就行了。

ftp常用命令详解

[不指定 2010/05/18 22:04 | by Totti ]
ftp命令是标准的文件传输协议的用户接口。ftp是在TCP/IP网络上的计算机之间传输文件的简单有效的方法。它允许用户传输ASCII文件和二进制文件。

在 ftp会话过程中,用户可以通过使用ftp客户程序连接到另一台计算机上。从此,用户可以在目录中上下移动、列出目录内容、把文件从远程机拷贝到本地机 上、把文件从本地机传输到远程系统中。需要注意的是,如果用户没有那个文件的存取权限,就不能从远程系统中获得文件或向远程系统传输文件。

为了使用ftp来传输文件,用户必须知道远程计算机上的合法用户名和口令。这个用户名/口令的组合用来确认ftp 会话,并用来确定用户对要传输的文件可以进行什么样的访问。另外,用户显然需要知道对其进行ftp 会话的计算机的名字或IP地址。

Ftp命令的功能是在本地机和远程机之间传送文件。该命令的一般格式如下:

$ ftp 主机名/IP

其中“主机名/IP”是所要连接的远程机的主机名或IP地址。在命令行中,主机名属于选项,如果指定主机名,ftp将试图与远程机的ftp服务程序进行连接;如果没有指定主机名,ftp将给出提示符,等待用户输入命令:

$ ftp

ftp >

此时在ftp>提示符后面输入open命令加主机名或IP地址,将试图连接指定的主机。

不管使用哪一种方法,如果连接成功,需要在远程机上登录。用户如果在远程机上有帐号,就可以通过ftp使用这一帐号并需要提供口令。在远程机上的用户帐号的读写权限决定该用户在远程机上能下载什么文件和将上载文件放到哪个目录中。

如果没有远程机的专用登录帐号,许多ftp站点设有可以使用的特殊帐号。这个帐号的登录名为anonymous(也称为匿名ftp),当使用这一帐号时,要求输入email地址作为口令。

如果远程系统提供匿名ftp服务,用户使用这项服务可以登录到特殊的,供公开使用的目录。一般专门提供两个目录:pub目录和incoming目录。pub目录包含该站点供公众使用的所有文件,incoming目录存放上载到该站点的文件。

一旦用户使用ftp在远程站点上登录成功,将得到“ftp>”提示符。现在可以自由使用ftp提供的命令,可以用 help命令取得可供使用的命令清单,也可以在 help命令后面指定具体的命令名称,获得这条命令的说明。

最常用的命令有:

ls 列出远程机的当前目录

cd 在远程机上改变工作目录

lcd 在本地机上改变工作目录

ascii 设置文件传输方式为ASCII模式

binary 设置文件传输方式为二进制模式

close 终止当前的ftp会话

hash 每次传输完数据缓冲区中的数据后就显示一个#号

get(mget) 从远程机传送指定文件到本地机

put(mput) 从本地机传送指定文件到远程机

open 连接远程ftp站点

quit 断开与远程机的连接并退出ftp

? 显示本地帮助信息

! 转到Shell中

下面简单将ftp常用命令作一简介。

启动ftp会话

open命令用于打开一个与远程主机的会话。该命令的一般格式是:

open 主机名/IP

如果在ftp 会话期间要与一个以上的站点连接,通常只用不带参数的ftp命令。如果在会话期间只想与一台计算机连接,那么在命令行上指定远程主机名或IP地址作为ftp命令的参数。

终止ftp会话

close、disconnect、quit和bye命令用于终止与远程机的会话。close和disronnect命令关闭与远程机的连接,但是使用户留在本地计算机的ftp程序中。quit和bye命令都关闭用户与远程机的连接,然后退出用户机上的ftp 程序。

改变目录

“cd [目录]”命令用于在ftp会话期间改变远程机上的目录,lcd命令改变本地目录,使用户能指定查找或放置本地文件的位置。

远程目录列表

ls命令列出远程目录的内容,就像使用一个交互shell中的ls命令一样。ls命令的一般格式是:

ls [目录] [本地文件]

如果指定了目录作为参数,那么ls就列出该目录的内容。如果给出一个本地文件的名字,那么这个目录列表被放入本地机上您指定的这个文件中。

从远程系统获取文件

get和mget命令用于从远程机上获取文件。get命令的一般格式为:

get 文件名

您还可以给出本地文件名,这个文件名是这个要获取的文件在您的本地机上创建时的文件名。如果您不给出一个本地文件名,那么就使用远程文件原来的名字。

mget命令一次获取多个远程文件。mget命令的一般格式为:

mget 文件名列表

使用用空格分隔的或带通配符的文件名列表来指定要获取的文件,对其中的每个文件都要求用户确认是否传送。

 

向远程系统发送文件

put和mput命令用于向远程机发送文件。Put命令的一般格式为:

put 文件名

mput命令一次发送多个本地文件,mput命令的一般格式为:

mput 文件名列表

使用用空格分隔的或带通配符的文件名列表来指定要发送的文件。对其中的每个文件都要求用户确认是否发送。

改变文件传输模式

默认情况下,ftp按ASCII模式传输文件,用户也可以指定其他模式。ascii和brinary命令的功能是设置传输的模式。用ASCII模式传输文件对纯文本是非常好的,但为避免对二进制文件的破坏,用户可以以二进制模式传输文件。

检查传输状态

传输大型文件时,可能会发现让ftp提供关于传输情况的反馈信息是非常有用的。hash命令使ftp在每次传输完数据缓冲区中的数据后,就在屏幕上打印一个#字符。本命令在发送和接收文件时都可以使用。

ftp中的本地命令

当 您使用ftp时,字符“!”用于向本地机上的命令shell传送一个命令。如果用户处在ftp会话中,需要shell做某些事,就很有用。例如用户要建立 一个目录来保存接收到的文件。如果输入!mkdir new_dir,那么linux就在用户当前的本地目录中创建一个名为new_dir 的目录。

从远程机grunthos下载二进制数据文件的典型对话过程如下:

$ ftp grunthos

Connected to grunthos

220 grunthos ftp server

Name (grunthos:pc): anonymous

33l Guest login ok, send your complete e-mail address as password.

Password:

230 Guest 1ogin ok, access restrictions apply.

Remote system type is UNIX.

ftp > cd pub

250 CWD command successful.

ftp > ls

200 PORT command successful.

l50 opening ASCII mode data connection for /bin/1s.

total ll4

rog1

rog2

226 Transfer comp1ete .

ftp > binary

200 type set to I.

ftp > hash

Hash mark printing on (1024 bytes/hash mark).

ftp > get rog1

200 PORT command successfu1.

150 opening BINARY mode data connection for rogl (l4684 bytes).

# # # # # # # # # # # # #

226 Transfer complete.

14684 bytes received in 0.0473 secs (3e + 02 Kbytes/sec)

ftp > quit

22l Goodbye.

Btvise

[不指定 2010/05/05 23:53 | by Totti ]
http://www.bitvise.com/download-area
分页: 10/50 第一页 上页 5 6 7 8 9 10 11 12 13 14 下页 最后页 [ 显示模式: 摘要 | 列表 ]