8月10
sed去除注释行:
# sed -i -c -e '/^#/d' filename

sed去除空行:
# sed -i -c -e '/^$/d' filename

sed去空行和注释行:
sed -i -c -e '/^$/d;/^#/' filename
Tags:
8月10
脚本:
#!/bin/sh
for ((i = 1; i < 254; i++))
do
        arping -I eth0 192.168.80.$i -c 1
done
arp -a > mac_tables

执行完以后,可在当前目录下找到mac_tables文件,里面就是本网段IP地址与MAC地址的对应关系。
8月7
编译MySQL的过程中提示:
/bin/rm: cannot remove `libtoolt': No such file or directory
解决:
1、确认libtool是否已经安装,如果没有安装的话,则先安装libtool
# yum -y install libtool

2、分别执行以下三条命令:
# autoreconf --force --install
# libtoolize --automake --force
# automake --force --add-missing

解决!
Tags: ,
8月5

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

7月25
解决:
# /usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root.  This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
分页: 3/94 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]