搜索""的结果
安装 zabbixx 提示no found jabber librarychecking for IKSEMEL... noconfigure: error: Jabber library not foundconfigure: error: Not found Jabber library1.下载文件,然后编译安装。http://code.google.com/p/iksemel/2.The correct configure:     ./configure  --enable-server --with-mysql --with-net-snmp--with-jabber=/usr/local --with-libcurl如果配置zabbix时,提示错误那么就使用下面配置iksemel:./configure  --prefix=/usr/local/ikeseml --enable-server --with-mysql --with-net-snmp--with-jabber=/usr/local --with-libcurl在配置configure zabbix时,也要添加上路径:./configure --with-mysql --with-net-snmp --with-jabber=/usr/local/ikeseml --with-libcurl --with-openipmi --enable-server --enable-agent -- enable-proxy --prefix/usr/local/zabbix
windows替换网卡后删除旧网卡的配置信息原来在取掉老网卡的时候,并没有把这块网卡从“设备管理器”中“卸载”,而是直接换掉了旧的网卡,并且还是占用原来的PCI槽。系统在发现新网卡后,把原来的网卡当做一个活动网卡,并保留其TCP/IP设置,以备再次启用。为了验证自己的判断,重新插入被更换的网卡,在进入系统桌面时果然没有“发现新硬件”的提示,查看“本地连接”属性,在TCP/IP设置中还是原来已经设置好的固定IP及相关参数。   进入“设备管理器”选择“网络适配器”,右键点击“Realtek RTL8139 Family PCI Fast Ethernet NIC”选择“卸载”,把旧网卡从设备管理器中彻底删除后换上D-Link 530TX网卡,重新开机并安装网卡驱动,设置网卡的TCP/IP属性,已经能够设置固定IP及相关参数,Internet连接恢复正常。  如果还不行,就搜注册表,删除原来所配置的IP与网关信息。
 
0

LINUX 网络优化

发表者:分类:Devops2011-10-19 09:13:24 阅读[3383]
LINUX 网络优化                                编辑文件:/etc/sysctl.conf/sbin/sysctl -e -p  生效 1, 优化网络设备接收队列net.core.netdev_max_backlog=3000文件位置:/proc/sys/net/core/netdev_max_backlog该文件表示在每个网络接口接收数据包的速率比内核处理这些包的速率快时,允许送到队列的数据包的最大数目。默认值:Red Hat Linux release 9 (Shrike)默认为300rhel5 默认为1000建议值为3000netstat -nat|awk '{print awk $NF}'|sort|uniq -c|sort -n  2、 TCP失败重传次数,默认值15,意味着重传15次才彻底放弃.可减少到5,以尽早释放内核资源. $ /proc/sys/net/ipv4/tcp_keepalive_time$ /proc/sys/net/ipv4/tcp_keepalive_intvl$ /proc/sys/net/ipv4/tcp_keepalive_probes这3个参数与TCP KeepAlive有关.默认值是: tcp_keepalive_time = 7200 seconds (2 hours)tcp_keepalive_probes = 9tcp_keepalive_intvl = 75 seconds 意思是如果某个TCP连接在idle 2个小时后,内核才发起probe.如果probe 9次(每次75秒)不成功,内核才彻底放弃,认为该连接已失效.对服务器...
 "TCP: Treason uncloaked! Peer..shrinks window..Repaired."最近在系统的dmesg信息中,经常看到这样的信息: TCP: Treason uncloaked! Peer 203.168.193.2:2682/80 shrinks window 2217805154:2217892754 Repaired. TCP: Treason uncloaked! Peer 203.168.193.2:10721/80 shrinks window ... Repaired. TCP: Treason uncloaked! Peer 203.168.193.2:10721/80 shrinks window ... Repaired. TCP: Treason uncloaked! Peer 203.168.193.2:44016/80 shrinks window ... Repaired. TCP: Treason uncloaked! Peer 203.168.193.2:44016/80 shrinks window ... Repaired. TCP: Treason uncloaked! Peer 203.168.193.2:55074/80 shrinks window ... Repaired.  操作系统版本为Redhat Linux AD3: [root@eygle /]# cat /etc/redhat-release Red Hat Enterprise Linux AS release 3 (Taroon) [root@eygle /]# uname -a Linux eygle 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux  以前一直没时间关注,今天抽点...
 
0
全面处理Linux syn攻击Linux syn攻击是虚拟主机服务商经常会遇到的黑客攻击,这里简单介绍一下如何处理Linux syn攻击的处理,以期有所帮助。AD:Linux syn攻击是一种黑客攻击,如何处理和减少这种攻击是系统管理员比较重要的工作,怎么才能出色的完成这项工作,希望通过本文能给你一启发,让你在以后工作中能轻松完成抵御Linux syn攻击的任务。虚拟主机服务商在运营过程中可能会受到黑客攻击,常见的攻击方式有SYN,DDOS等。通过更换IP,查找被攻击的站点可能避开攻击,但是中断服务的时间比较长。比较彻底的解决方法是添置硬件防火墙。不过,硬件防火墙价格比较昂贵。可以考虑利用Linux 系统本身提供的防火墙功能来防御。 抵御SYN SYN攻击是利用TCP/IP协议3次握手的原理,发送大量的建立连接的网络包,但不实际建立连接,最终导致被攻击服务器的网络队列被占满,无法被正常用户访问。Linux内核提供了若干SYN相关的配置,用命令: sysctl -a | grep syn 看到:net.ipv4.tcp_max_syn_backlog = 1024 net.ipv4.tcp_syncookies = 0net.ipv4.tcp_synack_retries = 5 net.ipv4.tcp_syn_retries = 5tcp_max_syn_backlog是SYN队列的长度,tcp_syncookies是一个开关,是否打开SYN Coo...
备份MySQL出现Can’t open file when using LOCK TABLES错误备份数据库出现mysqldump: Got error: 1016: Can't open file: './ShoppingCart/ShoppingCart_01f8.frm' (errno: 24) when using LOCK TABLES这样的错误。 搜索了一下,发现只要在mysqldump的时候加上--lock-tables=false就可以解决问题。 mysqldump -u root -pMyPassword DbName --lock-tables=false > data.sql
mysqldump: Got error: 1044: Access denied for user 'blogi'@'localhost' to database 'staging' when using LOCK TABLES解决办法,加上-skip-lock-tables选项即可。mysqldump -uxxx -pxxx --database  --skip-lock-tables > new.sql
Sersync基本配置需要在同步主服务器上配置sersync,在同步目标服务器配置rsync,并在目标服务器开启rsync守候进程,这样在主服务器产生的文件,就会被sersync实时同步到多个目标服务器。配置同步目标服务器rsync在多台目标服务器上配置如下:vi /etc/rsyncd.conf01 uid=root02 gid=root03 max connections=3600004 use chroot=no05 log file=/var/log/rsyncd.log06 pid file=/var/run/rsyncd.pid07 lock file=/var/run/rsyncd.lock080910 [tongbu1]11 path=/opt/tongbu112 comment = xoyo video files13 ignore errors = yes14 read only = no15 hosts allow = 192.168.0.100/2416 hosts deny = *    上面配置文件,表明允许主服务器(假设ip为192.168.0.100)访问,rsync同步模块名为[tongbu1],将同步过来的文件放入path指定的目录/opt/tongbu1。如果有多台从服务器,则每一台都需要进行类似的配置。配置好之后,使用如下命令,开启rsync守护进程:rsync --daemon在主服务器上安装配置sresync在google code下载sersync的可执行文件版本,里面有配置文件与可执行文件,这里用sersync2.5进行说明,新版本配置形式类似。tar -zxvf sersyncXxxx_xxbit_binary.tar...
      Linux 更换主板无法启动网卡一台服务器的主板除了问题,到了经销商那里更换了型号一模一样的网卡,把原来的硬盘装上去,启动系统:启动网卡出错:Starting eth0    Bringing up eth0        192.168.1.100        network interface eth0 does not exist        Please verify hardware or kernel module (driver)开始以为是内核没有加载驱动,重新编译了好几次内核,都无用。最后Google到一个页面解决了问题:http://groups.google.com/group/alt.os.linux.gentoo/browse_thread/thread/cc923387e3556e91?pli=1大概意思如下:系统加载网卡驱动后会去读一个文件,这个文件是一个缓存文件,包含了网卡的mac地址,因为更换了主板,网卡的mac也变动了,但是这个文件的mac还是没有变,所以现有的网卡mac地址和文件里的不同,所以系统就拒绝启动,把这个文件删除后重启系统就可以了。这个文件是:/etc/udev/rules.d/70-persistent-net.rules               
SSH 启动提示:OpenBSD Secure Shell server not in useubuntu或debian 安装ssh-server后却无法启动该服务命令如下: /etc/init.d/ssh start然后所输入密码,提示如下:* OpenBSD Secure Shell server not in use (/etc/ssh/sshd_not_to_be_run)以前没有用过此发行版,竟然也百度不到相关信息。我晕,后来到/etc/ssh/下面发现有个文件sshd_not_to_be_run 查看文件内容是空的,怎么回事,难道是这个文件影响的。先删除此文件,再重启ssh服务器。使用pietty远程,果然正常了。问题解决。
    总共269页,当前第255页 | 页数:
  1. 245
  2. 246
  3. 247
  4. 248
  5. 249
  6. 250
  7. 251
  8. 252
  9. 253
  10. 254
  11. 255
  12. 256
  13. 257
  14. 258
  15. 259
  16. 260
  17. 261
  18. 262
  19. 263
  20. 264
  21. 265