摘要: 一、bash基本使用 1. 定义变量 [root@localhost run]# var=123 # 等号周围不能有空格[root@localhost run]# echo $var # echo 输出变量,变量使用$取值123 2. 变量输出 方法1:echo # 输出字符串 [root@loca 阅读全文
posted @ 2020-09-11 17:56 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(158) 评论(0) 推荐(0)
摘要: '\':windows下路径使用 '/':linux下路径使用 $'\r': 未找到命令 原因:windows下写的脚本在linux下不识别 '\' ,使用 dos2unix 命令 转换文件 若未安装dos2unix(centos7):yum install dos2unix 阅读全文
posted @ 2020-06-03 16:55 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(361) 评论(0) 推荐(0)
摘要: scp传输: scp file root@192.168.1.1:/root file :传输的文件 192.168.1.1:/root:目标路径 使用脚本多个传输: 脚本例子: #!/bin/bash if [ $# -eq 0 ]; then echo "need param" exit fi 阅读全文
posted @ 2020-06-03 16:34 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(255) 评论(0) 推荐(0)
摘要: https://github.com/open-source-parsers/jsoncpp 阅读全文
posted @ 2020-04-14 16:07 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(129) 评论(0) 推荐(0)
摘要: yum -y install centos-release-scl; yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils; scl enable devtoolset-8 bash echo "sour 阅读全文
posted @ 2020-04-14 10:08 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(251) 评论(0) 推荐(0)
摘要: NDK下载地址:https://developer.android.google.cn/ndk/downloads/ 使用的版本:Android NDK,修订版 16b(2017 年 12 月) 环境:windows64位 下载解压之后会出现一下文件 接下来配置环境: 1. 搜索栏直接搜索 “编辑系 阅读全文
posted @ 2020-04-02 14:15 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(340) 评论(0) 推荐(0)
摘要: 一、基本使用 新建尾缀.proto的文件 syntax = "proto3"; message Wife{ string name = 1; int32 age = 2;} message Child{ string sex = 1; string name = 2; int32 age = 3;} 阅读全文
posted @ 2020-03-19 14:45 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(161) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <stdarg.h> char buffer[80];int vspfunc(char *format, ...){ va_list aptr; int ret; va_start(aptr, format); ret = vsprintf(bu 阅读全文
posted @ 2020-03-16 16:59 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(157) 评论(0) 推荐(0)
摘要: 方法1: mount -t cifs -o username="admin",password="111111" //192.168.1.2/Users/admin/Desktop/test /mnt/test/ # username="admin" // windows用户名 # password 阅读全文
posted @ 2020-03-16 16:55 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(114) 评论(0) 推荐(0)