Linux 学习笔记

jackxiang 2009-12-22 14:37 | |
Linux 学习笔记

限制 ssh root 登录和尝试次数

vi /etc/ssh/sshd_config

# #LoginGraceTime 2m
# PermitRootLogin no
# #StrictModes yes
# MaxAuthTries 4

解压 .7z 文件

sudo apt-get install p7zip
p7zip -d putyourfilename.7z

-d : decompress

mysql 备份

mysqldump -u user -p [database] > database.sql

Securing your PHP with Suhosin

1) Grab Suhosin source from the web

user#wget -c http://download.suhosin.org/suhosin-0.9.27.tgz

2) Extract and compile

user#tar xzvf suhosin-0.9.27.tgz

user#cd suhosin-0.9.27

user#phpize

user#./configure

user#make

user#make install

3) Now add extension module in php.ini configuration

user#vi /etc/php.ini

extension=suhosin.so

4) Restart your web server

user#service httpd restart

5) Check your php version to indicates that Suhosin is there

user#php -v
PHP 5.1.6 (cli) (built: Jul 16 2008 19:53:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/2361/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]