随笔分类 -  linux

摘要:cd /etc/yum.repos.d && mkdir bak && mv ./*.repo bak && \ wget http://mirrors.aliyun.com/repo/Centos-7.repo \ yum clean all && yum makecache && yum upd 阅读全文
posted @ 2022-03-31 19:40 yushimeng 阅读(100) 评论(0) 推荐(0)
摘要:C++ 改成C语言接口时,build遇到错误如下: /usr/bin/ld: objs/addon/src/KeepAliveNotify.o: undefined reference to symbol '_ZNKSs5c_strEv@@GLIBCXX_3.4'/usr/local/lib64/l 阅读全文
posted @ 2019-12-12 14:06 yushimeng 阅读(2809) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-11 15:56 yushimeng 阅读(117) 评论(0) 推荐(0)
摘要:在中括号中,判断变量的值, 加不加双引号的问题? -z 判断 变量的值,是否为空; zero = 0 - 变量的值,为空,返回0,为true - 变量的值,非空,返回1,为false -n 判断变量的值,是否为空 name = 名字 - 变量的值,为空,返回1,为false - 变量的值,非空,返回 阅读全文
posted @ 2018-10-18 16:07 yushimeng 阅读(202) 评论(0) 推荐(0)