在root权限下编译可执行文件
bisheng@bisheng:~/archive_robot/protocol/cmake-build-debug$ sudo su
root@bisheng:/home/bisheng/archive_robot/protocol/cmake-build-debug# make
如此生成的可执行文件上带有锁号
给可执行文件添加权限
root@bisheng:/home/bisheng/archive_robot/protocol/cmake-build-debug# sudo chmod u+s server