8月10
sed去除注释行:
sed去除空行:
sed去空行和注释行:
# sed -i -c -e '/^#/d' filename
sed去除空行:
# sed -i -c -e '/^$/d' filename
sed去空行和注释行:
sed -i -c -e '/^$/d;/^#/' filename
8月10
脚本:
执行完以后,可在当前目录下找到mac_tables文件,里面就是本网段IP地址与MAC地址的对应关系。
#!/bin/sh
for ((i = 1; i < 254; i++))
do
arping -I eth0 192.168.80.$i -c 1
done
arp -a > mac_tables
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
2、分别执行以下三条命令:
解决!
/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
# libtoolize --automake --force
# automake --force --add-missing
解决!
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.
>>> WARNING
>>> Executing updatedb as root. This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.





