linux 命令搜集-2

修改linux引导:

#sbin/grub 

grub> find /grub/stage1 

find /grub/stage1

(hd0,0)

如果你没找到试试 find /boot/grub/stage1 find stage1 

将CentOS的grub安装到MBR

grub> root (hd0,0)

grub> setup (hd0)

grub> reboot

 

修改 vi /boot/grub/menu.lst中的 (hd1,0)为(hd0,0)

 

yum 判断提供商:

yum provides */lspci

 

安装无线网卡

vi ./os/linux/usb_main_dev.c

change the file by adding line: 'MODULE_LICENSE("GPL");' as in example below:

/* Following information will be show when you run 'modinfo' */
/* *** If you have a solution for the bug in current version of driver, please mail to me. */
/* Otherwise post to forum in ralinktech's web site(www.ralinktech.com) and let all users help you. *** */
MODULE_AUTHOR("Paul Lin <paul_lin@ralinktech.com>");
MODULE_DESCRIPTION("RT2870 Wireless Lan Linux Driver");
MODULE_LICENSE("GPL");
#ifdef CONFIG_STA_SUPPORT
#ifdef MODULE_VERSION

 

linux的mod

insmod

modprobe

lsmod

 

centos,tomcat乱码:

<Connector URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

<Connector URIEncoding="UTF-8" port="8009" protocol="AJP/1.3" redirectPort="8443" />

 

禁止Ping请求:

sysctl -w net.ipv4.icmp_echo_ignore_all=1

sysctl -p

 

开启Ping请求:

sysctl -w net.ipv4.icmp_echo_ignore_all=0

sysctl -p

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值