1.FTP和LFTP #ftp/lftp ip //登陆ftp服务器,匿名的用户anonymous,密码只要加上@即可实现登陆 #get filename下载文件 控制台:lftp $lftp ftp.example.com $lftp -u joe ftp.example.com 。使用lfgpg ...
分类:
系统相关 时间:
2020-06-06 10:41:15
阅读次数:
62
问题:Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3, ...
分类:
其他好文 时间:
2020-06-06 01:16:22
阅读次数:
93
某些公司会墙特定网站,如果你有一个可访问的域名和服务器,就可以通过nginx反向代理来来解决这些问题。比如现在我们用mirror.example.com镜像www.baidu.com,以下是详细操作。 一、DNS里添加A记录,新增子域名,如:mirror.example.com 二、nginx里新增 ...
分类:
Web程序 时间:
2020-06-05 21:24:41
阅读次数:
70
1.根据agent上报的维度拿到tenantId,主机资源id,资源名称tag(name),组织资源属性和关系。2.上报关系和nginx资源nginx资源模板code:SWR-MWS-Nginx-Agent源配置项 目的配置项 关系名称中间件 弹性云服务器ECS 运行在RUNNING(3, "运行在 ...
分类:
其他好文 时间:
2020-06-05 19:27:19
阅读次数:
138
尝试用Qt5编译Qt4的工程,会遇到下面的问题: 错误: error: C1083: 无法打开包括文件: “QApplication”: No such file or directory 出现原因: Qt5里不再用QtGui模块,而是使用QtWidgets模块。 解决方法: 在.pro里加上QT ...
分类:
移动开发 时间:
2020-06-05 15:26:17
阅读次数:
56
第一步:在pro中链接Lib LIBS += -lDbgHelp 或 #pragma comment(lib , "DbgHelp.lib") 第二步:在main源文件中添加 #include <windows.h> 第三步:在main源文件中创建回调函数: 1 LONG CreateCrashHa ...
分类:
数据库 时间:
2020-06-05 15:04:20
阅读次数:
157
一、前提该工程名字是“Qt_Test_1”,在该目录下还有文件夹“build-Qt_Test_1-Debug”和“build-Qt_Test_1-Release”。 后两个文件夹用于存放Debug程序和Release程序。 二、问题 #pragma comment(lib , "/Qt_Test_1 ...
分类:
其他好文 时间:
2020-06-05 14:40:43
阅读次数:
122
参考 http://rocketmq.apache.org/docs/quick-start/ 启动NameSrv > nohup sh bin/mqnamesrv & > tail -f ~/logs/rocketmqlogs/namesrv.log The Name Server boot su ...
分类:
其他好文 时间:
2020-06-05 12:51:14
阅读次数:
168
//mywidget.cpp#include "mywidget.h" #include <QPushButton> MyWidget::MyWidget(QWidget *parent) : QWidget(parent) { #if 1 //创建第一个按钮 QPushButton *btn = ...
分类:
其他好文 时间:
2020-06-05 00:57:50
阅读次数:
144
计划任务 at 可以来做一次性的任务 crontab 同步时间 备份 日志 SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs # Example of job ...
分类:
系统相关 时间:
2020-06-05 00:50:52
阅读次数:
105