博客统计信息

用户名:longyufei
文章数:12
评论数:4
访问量:22961
无忧币:20
博客积分:504
博客等级:3
注册日期:2007-12-06

我最近发表的评论

请各位大虾对这个.. 回复
网络结构不清楚,图也画的不专业。
linux下使用mount.. 回复
请问你是在windows下挂载,还是在Li..

背景音乐

我的音乐

00:00 | 00:00

通过console线破解USG3040密码方法
1、首先重启USG3040,按CTRL+b然后输入密码:usg3000,选择第七项,就可以清除密码。
 
老版本的密码是:usg3000
新版本的可能是:secoway 或者 secowaybsp  
2011-07-17 09:24:56
1、在VMware上复制了一个enterprise linux,后来在复制的enterprise linux上不能上网了,激活eth0时老弹出 Device eth0 has different MAC address than expected ,解决办法是编辑文件:/etc/sysconfig/network-scripts/ifcfg-eth0,把HWADDR=.... 这行删掉就行了. 


2、修改MAC地址,首先必须关闭网卡设备,否则会报告系统忙,无法更改。

  命令是:

  /sbin/ifconfig eth0 down



  修改 MAC 地址,这一步较 Windows 中的修改要简单。

  命令是:

  /sbin/ifconfig eth0 hw ether 00:AA:BB..
登陆域控制服务器上的账号登陆到某一台服务器时,需要在那台服务器上将域控制器上的这个账户添加到:终端配置--连接,属性中的权限里面添加
 
域控制器上的账号。如果没有添加将无法登陆。
 
 
 

 

ASA5510使用ASDM登录时报错[问题解决]
OS:asa706-k8.bin
ASDM:asdm506.bin

以前使用正常,现在使用时,出现一个错误提示框:(不能贴图,把内容写在下面)

引用:
Error

ASDM is unable to read the configuration from the ASA. Please check the
configuration and your connection and then try again by clicking the
Refresh icon.相关的配置如下:

asdm image disk0:/asdm506.bin

http server enable
http 10.110.144.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.0 management

以前使用..
2009-09-14 18:30:09
启动服务:
service squid start|restart|stop|status
重新加载配置:service squid reload
 
#主要配置如下:
http_port 4449
#squid服务所开的端口,也就是网页链接时候设置的代理服务器的端口。
cache_mem 128 MB
#设置内存缓存的大小
cache_dir ufs /var/spool/squid 1096 16 256
#硬盘缓存的大小1096M第一级目录数是16个,第二级是256个目录。有利于寻找网页。
cache_effective_user squid
#设定缓存的有效用户:squid
cache_effective_group squid
#设定缓存的有效用户组:squid
dns_nameservers 192.168.1240
..
2009-07-19 08:48:06
 

#头两行是注释说明
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
#使用filter表
*filter
#下面四条内容定义了内建的INPUT、FORWAARD、ACCEPT链,还创建了一个被称为RH-Firewall-1-INPUT 的新链
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
#将所有流入的数据写入到日志文件中
-A INPUT -j LOG --log-level crit
#下面这条规则将添加到INPUT链上,所有发往INPUT链上的数据包将跳转到RH..
#!/bin/bash#ts4.sh
clear
#脚本存放路径PWD="/root/shell/ts"
echo `date`
#ip_list 文件是需要检查的服务器和服务器端口ls $PWD/ip_list 2> /dev/null
if [ $? -eq 0 ]
  then
  echo "this is file is ture!"
  NUM=`wc -l $PWD/ip_list | awk '{print $1}'`

  while read LINE
  do
  echo $LINE >$PWD/temp.ip
  x=`awk '{printf $1}' $PWD/temp.ip`
  y=`awk '{printf $2}' $PWD/temp.ip`
  result=`nmap -sT $x -p $y | grep open`
  if [ "$r..
#!/bin/bash
#program:Usingtostudythe[if...then...fi]program
#dsk2007/10/83:00
#content:Iwillusingthisprogramtoshowyousevices
#1.printtheprogram''sworkinyourscreen
echo "Now,the service of your Linux system will be detect!"
echo "The www,ftp,ssh,and sendmail pop3 will be detect!"
echo ""
#2.www
www=`netstat -ntlp | awk '{print $4}' | grep :80$`
if [ "$www" != "" ]; 
then
echo $www
echo "WWW is runing"
else
echo $www
echo "WWW is NOT runing"
killall -9 httpd
/usr/sbin/apachectl start
#serv..
在linux下挂载windows系统的网络共享磁盘:
mount -t smbfs -o username=longyufei,password=123456 //192.168.0.80/E$ /mnt/samba
 
删除挂载点!
umount /mnt/samba/
 
在linux下挂载linux的Smaba服务磁盘:
mount -t smbfs -o username=lyf,password=123456 //192.168.0.80/lyf /www/t_disk
 
删除挂载点!
umount /mnt/t_disk/
 
挂载linux系统的NFS网络共享磁盘
mount -t nfs -o rw 192.168.0.80:/home/lyf /mnt/nfs 
 
windows环境下访问linux下的NFS共享目录,不怎么方便!建议使用Smaba服务器!..
<?
$link=mysql_connect('localhost','root','123456');
if($link)
{
echo "success";
}
else {
echo "fail";
}
mysql_close();
?>
如果显示:success那么,就说明php和mysql数据库链接成功。
 
这里的root是数据库的用户名;123456是数据库的密码。如果php和mysql的链接是正确的那网页中将显示:success。
注意:localhost这里。可以是IP地址。
 <<   1   2   >>   页数 ( 1/2 )

公告