原文 - 6 commands to check and list active SSH connections in Linux
使用 Node.js 执行命令行程序
原文 - Execute a command line binary with Node.js
For even newer version of Node.js (v8.1.4), the events and calls are similar or identical to older versions, but it's encouraged to use the standard newer language features. Examples:
Spring Boot Maven 插件使用
Spring Boot Maven 插件提供了 Maven 对 Spring Boot 的支持, 让你能打包成jar或者war包,以及原地运行应用。使用该插件需要Maven版本大于等于3.2。
Windows 上的TCP代理设置
目前我们出现一个需求是将外网来的TCP请求代理到内网的某个服务器上, 比如我们的 Windows 上需要部署一个 RabbitMQ 推送服务, 但因为某些原因我们无法使用 Windows 版本的 RabbitMQ, 想将 RabbitMQ 部署在Linux服务器上, 确实有很多其他方式来满足这个需求, 比如再加一个服务器, 然后分配一个公网IP, 最后我们选择在 Windows 服务器上安装 VMware 然后虚拟一个Ubuntu系统. 现在需要将外网的 RabbitMQ 请求映射到 Ubuntu 上, 大概请求途径如下:
Ubuntu 系统安装根证书
Ubuntu新系统安装脚本
每次安装Ubuntu系统都要做一些初始化工作, 现记录如下, 方便下次使用.
为什么 Math.Round(2.5) 返回 2
制作Windows启动盘
制作Windows启动盘, 来源Dell
配置IIS反向代理教程
假设将域名www.helloworld.com
代理到本地的8080
端口
Node.js require 缓存
在Node环境, 使用require
多次加载模块时, 返回的都是同一个对象, 通过require.cache
可以迭代查看所有require缓存的对象.
ASP.Net 应用配置HTTP代理
在 web.config
文件新增以下配置, 即可设置代理(假设代理服务地址为 http://localhost:3210
):
如何使用命令行创建带有多个子模块的Maven项目
In this guide, we learn how to create Maven Multi-Module using Command Line with very easy steps. A multi-module project is defined by a parent POM referencing one or more sub-modules. In this example, we will create a blogger web application with different modules. Let's create a blogger as parent project and it's 3 sub-modules are blogger-core, blogger-common, blogger-web.
Real-world examples of maven multi-module projects are:
解决 Windows 环境中 git log 命令中文编码问题
在Windows系统中使用git命令,如果想正确显示UTF-8字符,需要执行以下命令设置环境变量:
set LC_ALL=C.UTF-8
$env:LC_ALL='C.UTF-8'
添加Windows开启启动程序
从Windows 95开始, 只需要将程序的快捷方式拖到Windows的“启动”文件夹即可。
Docker时区设置
下面介绍几个常用基础镜像(Alpine,Ubuntu,Debian 和 CentOS)如何设置时区。