linux 学习笔记

Posted 1 year, 5 months ago at 9:00 am. 0 comments

ad 468x60

限制 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

scp 比 ftp 安全

scp file.txt user@domain.com:/home/user

ad 468x60

相关日志:

  • 非常不错的 linux 技巧(推荐)
  • Gnome 中的鼠标拖拽操作技巧
  • ubuntu 新手技巧
  • ubuntu 技巧
  • 什么是 Maemo
  • No Replies

    Feel free to leave a reply using the form below!


    Leave a Reply