正在加载...
分页: 3/186 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]
      Rsyslog+LogAnalyzer 相信很多朋友都在用,也相信很多朋友遇到主机名问题,比如日志的主机名都是localhost,如下图

点击在新窗口中浏览此图片

      这种情况是由于没有设置合理的主机名导致的,还有一种情况主机名相同但是源IP不同,也可能导致无法详细分析日志

一、修改主机名

This is The Text Code
[root@localhost ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=syslog
Parsed in 0.001 seconds at 112.09 KB/s

Cisco 物理接口与MAC绑定地址

[ 2012/05/08 18:21 | by selboo ]
      为了防止恶意更改MAC,为了更加安全,在Cisco 上启用安全端口,接口与MAC地址绑定。

一、确定MAC和接口

确定MAC地址和连接的接口,比如:
MAC:1111.2222.3333
接口:interface Fa0/21

二、接口与绑定MAC

This is The Code
switch04#configure terminal
switch04(config)#interface Fa0/21
switch04(config-if)#switchport port-security mac-address 1111.2222.3333   # 绑定MAC地址
switch04(config-if)#switchport port-security   # 启动安全端口
switch04(config-if)#switchport port-security maximum 1   # 最大只允许1个MAC地址
switch04(config-if)#switchport port-security violation shutdown   # 如果不匹配测 shutdown 接口
Parsed in 0.000 seconds at N/A

Tags: , ,
      经常使用 Google 搜索的都知道,时不时的出现无法访问情况,不用说大家也知道,这是由于你搜索的关键字或打开页面被 国家防火墙 屏蔽了 也就是 Great Firewall

      下载下面的文件 追加到 C:\WINDOWS\system32\drivers\etc\Hosts 文件下,本人用了一个多月,还未出现无法访问情况

      
下载文件 (已下载 672 次)


      常常在线观看视频朋友,也经常被广告困扰,看一个视频要等 15~30秒 的广告,

  
Tags: , , ,

Centos 6.2 开启 VNC

[ 2012/03/28 18:48 | by selboo ]
一、查看是否安装 VNC

好像 6.0 以后VNC名字 由 vnc 改成  tigervnc

[root@xen ~]# rpm -qa|grep tigervnc
tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64
tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64

如果没有就安装下了

[root@xen ~]# yum install tigervnc tigervnc-server

添加启动项

[root@xen ~]# chkconfig --add vncserver
[root@xen ~]# chkconfig vncserver on

二、设置 VNC 密码

[root@xen ~]# vncserver
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xen:1.log

会在当前用户主目录下 生成 .vnc  目录和配置文件

[root@xen ~]# vncpasswd
Password:

Windows PythonSSH 模块安装

[ 2012/03/12 17:40 | by selboo ]
      最近在Windows下学习Python,使用到 PythonSSH,运行PythonSSH依赖于 paramiko模块,而paramiko模块又依赖于pycrypto模块,所以要先安装pycrypto模块

一、pycrypto模块安装

http://pypi.python.org/pypi/pycrypto/2.5 下载,安装时候说缺少,vcvarsall.bat

[codes=dos]D:\Python27\soft\pycrypto-2.5>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

分页: 3/186 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]