Linux下与WinRar兼容的程序,rarlinux

作者 : admin 于 2008年08月11日, 17:52:45
2008
08-11

要做个linux下与windows兼容的加密压包与解包工具,选择了rarlinux。

从这里下载 http://www.rarlab.com/rar/rarbsd-3.8.b4.tar.gz

下载后,直接tar解压,make安装,如果想自定义安装位置,可以修改Makefile文件。如果是自定义路径,那么把路径加入到PATH中。PATH=$PATH:/path export PATH

然后可以敲命令 rar,查看帮助。

查看压缩文件列表  rar l file.rar

解压缩一个文件 rar e file.tat

压缩一个文件 rar a target.rar soursefile

压缩一个文件并且加密码 tar a -p[password] target.rar soursefile

腾讯发布linux版本qq,第一时间抢鲜试用

作者 : admin 于 2008年07月31日, 13:35:51
2008
07-31

http://im.qq.com/qq/linux/

腾讯果然搞笑,痛快的在7月份发布了mac版本的qq和linux版本的qq。

本人在ubuntu下试用了一下,没有源代码,传统的做法,qq的一些功能被阉割。

不过用了几分钟,很稳定,多窗口,输入法,都没有出现什么问题。没有截图等花哨的功能,估计是以后要发布。

顶一个!

杀死占用80端口的进程

作者 : admin 于 2008年07月27日, 10:33:53
2008
07-27

just kill off the hanging processes:
# fuser 80/tcp
80/tcp: 3010 3702 4088 16754
# kill -n 9 3010
# kill -n 9 3702
# kill -n 9 4088
# kill -n 9 16754
# apachectl start

继续死苛LINUX

作者 : admin 于 2008年07月21日, 09:11:27
2008
07-21

本来计划拿两个星期搞定LAMP,可惜在PHP编译缺一直没有通过,问题在于php总不能找到mysql的一些库文件,不断解决中,再增加一个周的时间来搞。

打造全能优化的Linux+Apache+PHP+Mysql服务器(1)

作者 : admin 于 2008年07月13日, 21:05:51
2008
07-13

fastcgi   http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
apache2   http://apache.mirror.phpchina.com/httpd/httpd-2.2.9.tar.gz
mysql5    http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz/from/http://mysql.mirrors.arminco.com/
php5      http://cn2.php.net/distributions/php-5.2.6.tar.gz
libxml2
gd-jpeg   ftp://192.48.96.9/graphics/jpeg/jpegsrc.v6b.tar.gz
freetype  http://voxel.dl.sourceforge.net/sourceforge/freetype/freetype-2.3.7.tar.gz
libpng    http://voxel.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.29.tar.gz
zend      http://www.zend.com/download/55

memcached  http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz
memcache   http://pecl.php.net/get/memcache-3.0.1.tgz
libevent   http://www.monkey.org/~provos/libevent-1.2a.tar.gz

目前想到的功能大概有这些,想到再加。

目前正在研究每一个组件的性能和参数。

linux下安装eAccelerator加速器

作者 : admin 于 2008年05月24日, 23:16:48
2008
05-24

http://eaccelerator.net/ 官方

http://eaccelerator.net/wiki/Release-0.9.5.3 下载最新版本即可

安装前需要安装gcc或者phpize

然后安装php-devel yum install php-devel

./configure –enable-eaccelerator=shared-memory –with-php-config=/usr/bin/php-config –with-eaccelerator-shared-memory –with-eaccelerator-content-caching
make

注:–with-php-config 后边跟php-config的路径,根据环境确定

然后在php.ini中追加以下代码

安装为 Zend extension 模式:

zend_extension=”eaccelerator.so” //eaccelerator.so 拷贝到 php ext 目录下
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.log_file = “/log/httpd/eaccelerator_log”
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″

如果你使用了thread safe模式安装的PHP,你必须使用 “zend_extension_ts” 替换第一行的 “zend_extension”.
安装为 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.log_file = “/log/httpd/eaccelerator_log”
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″

php ini 设置的详细文档 http://eaccelerator.net/wiki/Settings
api 文档 http://bart.eaccelerator.net/doc/phpdoc/

 Page 2 of 2 « 1  2