标签:init

解决重启iptables内核模块自动unload

蓝鹰 | CentOS | 2016-03-29
在Linux内核里,默认情况下,iptables重启动的时候,iptables模块会被卸载(unload),然后加载重启.这种配置下iptables如果重启,对于那些tcp发起端window scale option有效的的连接会产生以下影响: 1.重启后window size会不能被正确识别; 2.已经建立的tcp会话状态会从 ESTABLISHED → INVALID 导致会话中断; 以上问题对于有重传机制的应用或许问题不大,但... [阅读全文]
ė0 浏览数 6解决重启iptables内核模块自动unload已关闭评论 0, , , , , ,

XenServer硬盘出现错误:There was an SR backend failure

蓝鹰 | CentOS | 2016-02-25
昨晚Webnx机房停电,个人几台服务器出现硬盘不能使用了,VPS全部能开机,这可要人命呀! 从XenCenter发现,硬盘有个红色“X”,即使使用右键 “Repair…” 修复硬盘,出现错误:“The SR failed to complete the operation” “The SR failed to complete the operation”这错误再次伤了我,太笼统的错误了,Google,度娘,都查了N遍又N遍,没有答案,也无... [阅读全文]
ė0 浏览数 6XenServer硬盘出现错误:There was an SR backend failure已关闭评论 0, , , , ,

debain用udhcpd做htcp服务器

蓝鹰 | debian | 2015-11-16
安装必备程序 apt-get install udhcpd udhcpd主要为连接到WiFi的设备自动分配IP地址的,当然你也可以换用你所熟悉的软件。 配置udhcpd,编辑/etc/udhcpd.conf,主要内容如下: start 192.168.42.2 # This is the range of IPs that the hostspot will give to client devices. end 192.168.42.20 interface wlan0 # The device uDHCP listens on. re... [阅读全文]
ė0 浏览数 6debain用udhcpd做htcp服务器已关闭评论 0, , , , , , ,

Debian使用Hostapd搭建无线访问点(WAP)

蓝鹰 | debian | 2015-11-16
不是每张网卡都有无线AP功能所以先检查下 http://linuxwireless.org/en/users/Drivers/ 这里可以查到支持AP的网卡及内核版本 apt-get install wireless-tools iw list 重点观察: Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * mesh point * P2P-client * P2P-GO 看看这段中是不是有AP如果有可以继续, 步骤1: 安装hostapd a... [阅读全文]
ė0 浏览数 6Debian使用Hostapd搭建无线访问点(WAP)已关闭评论 0, , , , , , , , , ,

debain配置dhcp服务器

蓝鹰 | debian | 2015-11-16
安装 apt-get -y install isc-dhcp-server 编辑要使用的网卡 vim /etc/default/isc-dhcp-server INTERFACES="eth0" 编辑配置文件 vim /etc/dhcp/dhcpd.conf #要使用的域名可以随便 option domain-name "spices.org"; #要使用DNS option domain-name-servers 213.191.92.86, 213.191.74.18; #这里是设置DHCP的网段 subnet 192.168.1.0 netmask 2... [阅读全文]
ė0 浏览数 6debain配置dhcp服务器已关闭评论 0, , ,

Debian双网卡配置

蓝鹰 | debian | 2015-11-09
1.单网卡配置 /etc/network/interfaces auto eth0 #iface eth0 inet dhcp(默认是DHCP被注释掉) iface eth0 inet static address 192.168.8.110 netmask 255.255.255.0 gateway 192.168.8.1 2.双网卡配置 /etc/network/interfaces auto eth0 #iface eth0 inet dhcp(默认是DHCP被注释掉) iface eth0 inet static address 192.168.8.110 netmask 255.2... [阅读全文]
ė0 浏览数 6Debian双网卡配置已关闭评论 0, , ,

debian让root用户能直接进行ssh登录

蓝鹰 | debian | 2015-11-09
问题 出于安全原因,默认参数很严格,禁止root用户直接使用ssh登陆 比如先用非root的帐户,登陆到ssh后,su成为root 解决方案 如果想直接用root登陆,则修改如下配置文件: vi /etc/ssh/sshd_config 找到其中的如下一行,将前边的#符号去掉,并修改no为yes #PermitRootLogin no 改成: PermitRootLogin yes 接下来执行如下命令重新启动SSH服务: /etc/i... [阅读全文]
ė0 浏览数 6debian让root用户能直接进行ssh登录已关闭评论 0, , , , ,

linux下查看占用io的进程

蓝鹰 | CentOS | 2015-10-28
linux下查看占用io的进程 内核2.6.2以上的版本使用iotop 抓哪个进程干坏事前要先停掉rsyslog /etc/init.d/rsyslog stop echo 1 > /proc/sys/vm/block_dump dmesg | egrep "READ|WRITE|dirtied" | egrep -o '([a-zA-Z]*)' | sort | uniq -c | sort -rn | head 1423 kjournald 1075 pdflush 209 indexer 3 cronolog 1 rnald 1 mysqld 不要忘记在抓完之... [阅读全文]
ė0 浏览数 6linux下查看占用io的进程已关闭评论 0, , , , , , ,

CISCO VPN出现“Failed to initialize connection subsystem”错误

蓝鹰 | ANYCONNECT | 2015-10-22
最近把系统换成了windows 10 Technical Preview版本,可以正常安装Cisco VPN(Cisco VPN版本anyconnect-win-3.0.5080-pre-deploy-k9),启动后出现“Failed to initialize connection subsystem”错误。 解决方法: “右击”,打开VPN的“属性” — “兼容性”,“兼容模式”中勾上“以兼容模式运行这个程序”,下拉菜单选择“windows 7”,并勾上“以管理员身份... [阅读全文]
ė0 浏览数 6CISCO VPN出现“Failed to initialize connection subsystem”错误已关闭评论 0,

wdcp ftp 530 错误处理办法

蓝鹰 | WDCP | 2014-12-09
1, 先查看下PID文件是否存在   cat /var/run/pure-ftpd.pid cat: /var/run/pure-ftpd.pid: No such file or directory 如果提示没有文件按以下步骤进行: 查找PID ps -ef | grep pure 删除PID kill -9  PID 再启动服务 /etc/init.d/pureftpd start 再次查看,有PID了就恢复正常了 cat /var/run/pure-ftpd.pid 14883 [阅读全文]
ė5 浏览数 6wdcp ftp 530 错误处理办法已关闭评论 0, , , ,
Ɣ回顶部