可通过go help获取go命令,如下记录一些易忽略的go命令用法。 Go is a tool for managing Go source code. Usage: go <command> [arguments] The commands are: bug start a bug report ...
分类:
其他好文 时间:
2020-05-03 10:55:29
阅读次数:
60
修改ssh的端口 没有安装semanage的话,需要安装 1. 查看安全组允许的ssh端口 2. 添加 24567 端口为ssh的端口 3. 修改ssh端口并禁用root远程登录 4. 重启ssh服务 免密登录 原理 1. 客户端向服务器发送链接请求 2. 服务器向客户端发出自己的公钥 3. 客户端 ...
分类:
系统相关 时间:
2020-05-02 23:02:06
阅读次数:
104
yls 2020/5/2 1. 创建目录结构 2. 创建pxc集群的网络 3. 创建master节点的docker compose.yml文件 运行master节点 通过 可以查看到master节点的ip为192.168.5.2 4. 创建follower节点的docker compose.yml文 ...
分类:
其他好文 时间:
2020-05-02 11:40:16
阅读次数:
99
nginxphp: image: richarvey/nginx-php-fpm:1.2.5 volumes: - /data/www/www.cnvp.com:/var/www/html - /etc/localtime:/etc/localtime:ro ports: - 9000:80 env ...
分类:
其他好文 时间:
2020-04-30 11:21:12
阅读次数:
65
以下是关于victoriametrics 单机的一个简单试用 环境准备 docker-compose 文件 version: "3" services: prometheus: image: prom/prometheus ports: - 9090:9090 volumes: - ./promda ...
分类:
其他好文 时间:
2020-04-28 15:14:15
阅读次数:
100
一、实践内容 本实践目标是掌握metasploit的基本应用方式,重点掌握常用的三种攻击方式的思路。 二、实践过程 (一)主动攻击实践 靶机:WindowsXP,关闭防火墙,IP地址为192.168.152.138。 攻击机:IP地址为192.168.152.129 对【ms08_067】 攻击机与 ...
分类:
其他好文 时间:
2020-04-28 14:52:54
阅读次数:
61
Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t ...
分类:
其他好文 时间:
2020-04-26 19:22:16
阅读次数:
72
原文:使用Serilog、Elasticsearch记录 ASP.NET Core 日志 [翻译] ASP.NET Core 利用 Docker、ElasticSearch、Kibana 来记录日志 转自:https://www.cnblogs.com/Leo_wl/p/10943285.html ... ...
分类:
Web程序 时间:
2020-04-24 13:13:20
阅读次数:
79
这段时间研究了 Vue 和 Koa2,想把二者结合起来,Vue作为前端框架,Koa2作为后端框架,如何打通前后端的数据通过,需要解决跨域问题,现将其中的一些关键配置记录下来,供大家参考: 本篇文章主要内容: · 新建 Vue 前端项目 · 新建 Koa2 后端项目 · 解决跨域问题,实现前端接收后端 ...
分类:
其他好文 时间:
2020-04-24 11:34:26
阅读次数:
198
You are given a string ss consisting of lowercase Latin letters. Let the length of ss be |s||s|. You may perform several operations on this string. In ...
分类:
其他好文 时间:
2020-04-23 22:44:20
阅读次数:
64