centos8 过滤 syslog信息

服务器(centos8)在用户登录的时候会出现一些登录日志。 - 通过下面命令生成rsyslog的过滤规则; 根据实际情况, 新增相关过滤规则即可 > - 2\. 重启 rsyslog 服务 图片 :台灣野鳥攝影 Photo-eye 鳥訊\-李國榮

2022-01-02 · 1 分钟

C++ pointers 和reference

Pointer 和 references - reference:总代表一个对象, 没有null reference;pointer则没有限制,可以为null - poiner可以被重新赋值; reference不可以被重新赋值。 如果在不同时间指向不同对象则使用pointer, 如果一旦代表该对象就不能改变选择…

2021-10-25 · 2 分钟

What every programmer should know about memory,Part 1

这篇文章 What every programmer should know about memory, Part 是出自lwn.net 作者 Ulrich Drepper 常见的商用计算机结构: - 北桥南桥结构: CPU通过FSB连接到北桥, 北桥包含内存控制器,通过不同内存控制器链接不同的RAM,如DRAM…

2021-10-16 · 4 分钟

ACME 证书自动化管理

在搭建blog使用https服务,需要申请配置一个域名证书,使用了Let’s Encrypt申请了免费的https证书。

2021-08-28 · 4 分钟

docker 安装 Wordpress 及更新

今天登录到博客提示需要升级php,更新了下镜像顺便把之前搭建的步骤整理了一下。

2021-08-24 · 1 分钟

leetcode - Squares of a Sorted Array

Given an integer array nums sorted in non-decreasing order, return _an array of the squares of each number sorted in non-decreasing

2021-06-11 · 1 分钟

Leetcode-Is Subsequence

Given two strings s and t, check if s is a subsequence of t. A subsequence of a string is a new string that is formed from the original string by deleting some…

2021-05-18 · 1 分钟

DeFi

DeFi:Decentralized finance 是一种基于block-chain的金融形式。他不依赖于券商,银行,交易所等中心话的机构。

2021-05-12 · 3 分钟

LeetCode-3Sum

Given an integer array nums, return all the triplets numsi, numsj, numsk such that i != j, i != k, and j != k, and numsi + numsj + numsk == 0

2021-05-10 · 1 分钟

LeetCode-Two Sum

Given an array of integers nums and an integer target, return _indices of the two numbers such that they add up to target

2021-05-10 · 1 分钟