在内网如何知道其他ip的MAC地址

 arp -a
? (192.168.1.169) at 48:a1:95:c3:d8:14 [ether] on eno1
? (172.17.0.2) at 02:42:ac:11:00:02 [ether] on docker0
? (192.168.1.243) at 50:7b:9d:0b:4c:52 [ether] on eno1
? (192.168.1.193) at 64:b0:a6:ca:85:d0 [ether] on eno1
? (192.168.1.190) at 50:e5:49:c6:fe:3e [ether] on eno1
? (192.168.1.234) at e0:89:7e:b3:7c:3f [ether] on eno1
gateway (192.168.1.1) at 08:57:00:a9:06:d7 [ether] on eno1
? (192.168.1.241) at 54:bf:64:40:11:c7 [ether] on eno1
? (192.168.1.185) at 80:ad:16:47:a9:01 [ether] on eno1
? (192.168.1.212) at 4a:1d:9b:f9:41:df [ether] on eno1
? (192.168.1.78) at 80:18:44:e8:91:fc [ether] on eno1
? (192.168.1.240) at 7c:76:68:ce:eb:ec [ether] on eno1

注意缓存

Auto start service on Boot

CentOS or RHEL 6.x

chkconfig --add httpd
chkconfig httpd on
chkconfig --list 可以看到其他启动服务和启动级别

/etc/rc.d/init.d下可观察启动脚本

/etc/centos-release 是否存在观察centOS版本

RHEL or CentOS 7.x

systemctl enable php-fpm

Special Boost libraries With Cmake3

centos中默认安装的C++ boost libraries过于老旧有些依赖编译安装的软件预编译不过

Unable to find the Boost header files.  Please set BOOST_ROOT to the root   directory containing Boost or BOOST_INCLUDEDIR to the directory containing

https://www.boost.org下载最新的版本

wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz
tar -xzf boost_1_72_0.tar.gz cd boost_1_72_0 
./bootstrap.sh --prefix=/opt/boost 
./b2 install --prefix=/opt/boost --with=all

在cmake时指定boost安装路径

cmake3 -DBOOST_ROOT=/opt/boost

from https://cmake.org/cmake/help/v3.0/module/FindBoost.html