上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 42 下一页
摘要: eg: { "oper": 147, "data": { "codes": ["0755VF", "0756SB", "0734OP"], "ids": [1,2,3,4], } } char *pResponse; cJSON *root, *json_oper, *json_data, *jso 阅读全文
posted @ 2020-08-27 15:01 hbg-rohens 阅读(583) 评论(0) 推荐(0) 编辑
摘要: sudo cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_nppi_LIBRARY=true -D CUDA_GENERATION=Kepler .. -D CUDA_nppi_LIBRARY= 阅读全文
posted @ 2020-07-01 16:19 hbg-rohens 阅读(431) 评论(0) 推荐(0) 编辑
摘要: ubuntu16.04 安装 apache21、 sudo apt update2、 sudo apt-get install apache2 apache2-utils3、 qid3、 测试安装ok? 打开页面 http://localhost/ 来启动访问的服务器, 服务器将会跳转到 http: 阅读全文
posted @ 2020-06-17 13:50 hbg-rohens 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 无线网卡有个100兆端eth口,与工控机的千兆口直连. 无线网卡异常启动后,速率总是协商不成功,导致工控机端有线口up不起来. 解决方案: 强制工控机端端口为100兆,不去协商. 命令为: sudo ethtool -s enp3s0 speed 100 duplex full autoneg of 阅读全文
posted @ 2020-06-16 10:59 hbg-rohens 阅读(2778) 评论(0) 推荐(0) 编辑
摘要: sudo touch if_interface_up.shsudo chmod 777 if_interface_up.sh sudo vi if_interface_up.sh #!/bin/bashwhile true do result=`cat /sys/class/net/enp0/car 阅读全文
posted @ 2020-06-09 20:03 hbg-rohens 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 守护进程1 定义守护进程是脱离于终端并且在后台运行的进程.2 创建守护进程步骤1)创建子进程,父进程退出.2)在子进程中创建新会话.(最重要的一步,使用系统函数setsid)3)改变当前目录为根目录4)重设文件权限掩码5)关闭文件描述符调用setsid有三个作用:1)让进程摆脱原会话的控制2)让进程 阅读全文
posted @ 2020-06-02 10:39 hbg-rohens 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 在 MySQL 中只有使用了 Innodb 数据库引擎的数据库或表才支持事务。 事务处理可以用来维护数据库的完整性,保证成批的 SQL 语句要么全部执行,要么全部不执行。 事务用来管理 insert,update,delete 语句。 一般来说,事务是必须满足4个条件(ACID)::原子性(Atom 阅读全文
posted @ 2020-04-16 10:43 hbg-rohens 阅读(537) 评论(0) 推荐(0) 编辑
摘要: test1.cpp源码如下: #include <stdio.h> #include <libxl.h> using namespace libxl; int main() { Book* book = xlCreateBook(); if(book) { Sheet* sheet = book-> 阅读全文
posted @ 2020-04-15 14:02 hbg-rohens 阅读(502) 评论(0) 推荐(0) 编辑
摘要: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https: 阅读全文
posted @ 2020-04-15 09:44 hbg-rohens 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: hbg@rohens:/home/program/zookeeper-3.3.3/src/c$ ./configure checking for doxygen... /usr/bin/doxygenchecking for perl... /usr/bin/perlchecking for dot 阅读全文
posted @ 2020-04-02 10:49 hbg-rohens 阅读(1393) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 42 下一页