摘要: linux的日志文件可以说是最有用的了,日志文件可以让我们了解系统所处的状态,比如能查出哪些用户有登入,这也涉及相关的安全问题。 日志分析1.了解日志文件linux的日志文件可以说是最有用的了,日志文件可以让我们了解系统所处的状态,比如能查出哪些用户有登入,这也涉及相关的安全问题。如果我们不懂得分析日志,可能我们都不知道有些用户曾经登入过我们的系统。另外系统出了什么问题,我们也要查看系统日志,比如... 阅读全文
posted @ 2009-07-03 13:42 Dragon.Spirit 阅读(373) 评论(0) 推荐(0) 编辑
摘要: ps / ps -A f #查看进程列表 kill ID #杀死指定进程ID 阅读全文
posted @ 2009-07-02 23:22 Dragon.Spirit 阅读(838) 评论(0) 推荐(0) 编辑
摘要: netstat -alnetstat -nl 阅读全文
posted @ 2009-07-02 23:11 Dragon.Spirit 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 查看软件xxx安装内容dpkg -L xxx查找软件apt-cache search 正则表达式查找文件属于哪个包dpkg -S filenameapt-file search filename查询软件xxx依赖哪些包apt-cache depends xxx查询软件xxx被哪些包依赖apt-cache rdepends xxx增加一个光盘源apt-cdrom add系统升级apt-get upd... 阅读全文
posted @ 2009-07-02 23:10 Dragon.Spirit 阅读(518) 评论(0) 推荐(0) 编辑
摘要: LocalDomain:/etc/init.d# update-rc.d bittorrent start 20 1 . stop 20 0 2 3 4 5 6 .System startup links for /etc/init.d/bittorrent already exist.LocalDomain:/etc/init.d# cd /etc/rc3.d怎么停止启动 bittorrent ... 阅读全文
posted @ 2009-07-02 22:01 Dragon.Spirit 阅读(385) 评论(3) 推荐(0) 编辑
摘要: IptablesdefaultlogfileForexample,ifyoutypethefollowingcommand,itwilldisplaycurrentiptableslogfrom/var/log/messagesfile: #tail-f/var/log/messages Output: Oct401:14:19debiankernel:IN=ra0OUT=MAC=00:17:9a... 阅读全文
posted @ 2009-07-02 12:54 Dragon.Spirit 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 此文描述了自ubuntu 5.10版本之后的系统所代命令参数,dapper,edgy以及7.04版本中可能会有一些变动,于此文不同,如有疑问可以发邮件给isher或访问wiki.ubuntu.com.cn下面内容及向心内文的内容均为ubuntu(cn)的wiki中摘录,为方便广大是用ubuntu的使用者查找和使用,特摘录安装 查看软件xxx安装内容dpkg -L xxx 查找软件apt-cache... 阅读全文
posted @ 2009-07-02 12:40 Dragon.Spirit 阅读(377) 评论(0) 推荐(0) 编辑
摘要: LocalDomain:~# /usr/bin/mysql stopERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)---root 授权问题---SHOW GRANTS for 'debian-sys-maint'@'localhost';show grants for 'root'... 阅读全文
posted @ 2009-07-02 12:11 Dragon.Spirit 阅读(380) 评论(3) 推荐(0) 编辑
摘要: 在Debian下安装MySQL,步骤如下:   Debian: /# apt-get install mysql-server  装好之后要缺省root是没有密码的,可以更改.  Debian: /# mysqladmin -u root password $(yourpass)   在/etc/mysql/my.conf里面可以修改一些属性。   原来有这么一行:bind-address = 1... 阅读全文
posted @ 2009-07-02 11:37 Dragon.Spirit 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 最近在我管理的 Linux 主機上安裝了 Monitorix 工具,這是一套可以監控系統狀態的工具,可監控的項目非常的多,你也可以自行設定要監控的服務,預設就可以分析 CPU 與記憶體使用率、磁碟存取使用率(Disk I/O Usage)、網路使用率(Network traffic and usage)、各服務使用需求(network services demand)、使用者登入的狀況、....等... 阅读全文
posted @ 2009-07-02 03:30 Dragon.Spirit 阅读(640) 评论(0) 推荐(0) 编辑