11 月 042013
 
接压缩并执行安装程序

[root@linuxwalk tarball]# tar xzf DenyHosts-2.6.tar.gz
[root@linuxwalk DenyHosts-2.6]# python setup.py install

查看生成的目录及文件

[root@linuxwalk DenyHosts-2.6]# ll /usr/share/denyhosts/
 total 84
 -rw-r--r-- 1 root root 16549 Dec 8 2006 CHANGELOG.txt
 -rwxr-xr-x 1 root root 4076 Apr 22 2006 daemon-control-dist
 -rw-r--r-- 1 root root 20830 Aug 20 2006 denyhosts.cfg-dist
 -rw-r--r-- 1 root root 18009 Dec 17 2005 LICENSE.txt
 drwxr-xr-x 2 root root 4096 Nov 4 10:23 plugins
 -rw-r--r-- 1 root root 3575 Feb 3 2006 README.txt
 drwxr-xr-x 2 root root 4096 Nov 4 10:23 scripts
 -rw-r--r-- 1 root root 1522 Apr 5 2006 setup.py
 [root@linuxwalk DenyHosts-2.6]#

Continue reading »

11 月 012013
 

anon_umask
The value that the umask for file creation is set to for
anonymous users. NOTE! If you want to specify octal values,
remember the “0” prefix otherwise the value will be treated as
a base 10 integer!
Default: 077
local_umask
The value that the umask for file creation is set to for local
users. NOTE! If you want to specify octal values,remember the
“0” prefix otherwise the value will be treated as a base 10 integer!
Default: 077

11 月 012013
 

<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>

10 月 312013
 

 

使用PHP源码安装包中的mcrypt编译扩展时的错误提示

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
[root@prouter mcrypt]#

下载编译mcrypt扩展所需的libmcrypt源码包

ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz

编译安装libmcrypt
[root@prouter libmcrypt-2.5.7]# ls /usr/local/libmcrypt/
bin include lib man share
[root@prouter libmcrypt-2.5.7]# ls /usr/local/libmcrypt/lib/
libmcrypt libmcrypt.la libmcrypt.so libmcrypt.so.4 libmcrypt.so.4.4.7

再次编译PHP mcrypt扩展并引用libmcrypt程序

[root@prouter mcrypt]# ./configure –with-mcrypt=/usr/local/libmcrypt/ –with-php-config=/usr/local/php/bin/php-config

安装动态扩展文件
[root@prouter mcrypt]# make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
[root@prouter mcrypt]# ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
eaccelerator.so mbstring.so mcrypt.so mysqli.so sockets.so
[root@prouter mcrypt]# vi /usr/local/php/lib/php.ini

10 月 112013
 

[root@localhost ~]# tar xzf bacula-5.2.13.tar.gz

[root@localhost bacula-5.2.13]# yum install make gcc-c++

[root@localhost bacula-5.2.13]# yum install mysql-server

错误分析
configure: error: Unable to find mysql.h in standard locations

[root@localhost bacula-5.2.13]# yum install mysql-devel

[root@localhost bacula-5.2.13]# CFLAGS=”-g -Wall” \
./configure –prefix=/usr/local/bacula \
–enable-smartalloc –with-mysql –enable-readline

 

相关下载:
(1) bacula 5.2.13

9 月 062013
 

源码编译版本squid 3.3.8启动时message中的错误信息

[root@localhost etc]# ../sbin/squid
 Enter PEM pass phrase:
 [root@localhost etc]#
[root@localhost ~]# less /var/log/messages
 Sep  6 10:09:13 localhost (squid-1): No valid signing SSL certificate configured for https_port [::]:443

使用YUM安装的squid版本信息

[root@localhost ~]# rpm -q squid
 squid-3.1.10-18.el6_4.i686
 [root@localhost ~]#

在使用相同配置文件时squid的启动错误信息

[root@localhost ~]# less /var/log/squid/cache.log
 2013/09/06 10:41:40| Ignoring https_port [::]:443 due to SSL initialization failure.
[root@localhost ~]# less /var/log/messages
 Sep  5 13:35:55 localhost (squid): Cannot open HTTP Port
[root@localhost ~]# less /var/log/squid/cache.log
 2013/09/05 13:36:51| Failed to acquire SSL private key '/usr/local/squid/server.key': error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

取消server.key的密码保护

[root@localhost ~]# openssl rsa -in server.key -out nserver.key
 Enter pass phrase for server.key:
 writing RSA key
 [root@localhost ~]#

修改squid.conf配置文件

https_port 443 accel cert=/usr/local/squid/server.pem key=/usr/local/squid/server.key defaultsite=hk.linuxcache.com vhost
 cache_peer 175.10.20.30 parent 80 0 no-query originserver name=my443
 acl hk_ssl dstdomain hk.linuxcache.com
 cache_peer_access my443 allow hk_ssl
 http_access allow hk_ssl
 http_access deny all

启动squid并查看监听端口80和443已启用

[root@localhost ~]# /usr/local/squid/sbin/squid
 [root@localhost ~]# netstat -ant
 Active Internet connections (servers and established)
 Proto Recv-Q Send-Q Local Address               Foreign Address             State
 tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN
 tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN
 tcp        0      0 0.0.0.0:53852               0.0.0.0:*                   LISTEN
 tcp        0     52 192.168.111.134:22          192.168.111.1:55917         ESTABLISHED
 tcp        0      0 :::111                      :::*                        LISTEN
 tcp        0      0 :::80                       :::*                        LISTEN
 tcp        0      0 :::22                       :::*                        LISTEN
 tcp        0      0 :::443                      :::*                        LISTEN
 tcp        0      0 :::32863                    :::*                        LISTEN
 [root@localhost ~]#