9 KrisRoofe

尚未进行身份认证

我要认证

暂无相关简介

等级
TA的排名 2w+

auditd Unregistered Authentication Agent for unix-process

sudo systemctl restart auditd> Failed to restart auditd.service: Operation refused, unit> auditd.service may be requested by dependency only (it is configured> to refuse manual start/stop). See system logs and 'systemctl status> auditd.ser

2020-07-08 20:56:18

pam_succeed_if(sshd:auth): requirement “uid 」= 1000“ not met by user “root“

有下面两种情形:cat /etc/shadow | grep root 查看root用户是否被锁定。如果出现 root:!!$6$CG (注意其中的!!)则说明root用户被锁定,不能登陆。解决方案:passwd -u root 解除用户锁定。查看PAM配置文件/etc/pam.d/login, /etc/pam.d/sshd /etc/pam.d/system-auth中是否有 auth required pam_succeed_if.so uid >= 1000;修改或者注释该

2020-07-07 15:34:13

Centos setting password for user, but still can‘t log in on it

Refer to : Centos setting password for user, but still can’t log in on itUse another to check the log by with sudo tail -f /var/log/secureIt shows something like this,Jul 4 16:24:06 iz2ze86eplnjdk8exdjimjz sshd[17288]: pam_tally2(sshd:auth): user lv (1

2020-07-07 15:19:54

Error response from daemon: OCI runtime create failed

Refer to StackOverflow:docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime errorTo check the issue by run docker in the debug mode.1: stop docker with systemctl stop docker2: run docker in debug mode dockerd -

2020-07-07 15:18:23

mysql查询各组最近一条记录

select max(record_id),record_name,user_id from sc_records group by user_id order by null.SQL Show most recent record in GROUP BY?Retrieving the last record in each group - MySQL

2020-06-06 08:20:35

mysql计算累加和

使用变量来计算累加和set @csum := 0;select id, count, (@csum := @csum + count) as cumulative_sumfrom YourTableorder by id;参考 Create a Cumulative Sum Column in MySQL

2020-05-07 10:50:29

nginx: [emerg] a duplicate default server for

StackOverflow: nginx: [emerg] a duplicate default server forGithub: Error: duplicate listen options for [::]:443 #5550

2020-04-22 16:20:31

软件中的脚手架

Scaffolding generally refers to a quickly set up skeleton for an app. It’s not rails-only since other platforms have it as well. It’s also not generally meant to be a “final” system;简单描述为:脚手架是用来快速搭建一...

2020-04-14 18:30:04

带有空格的文件名参数处理。

设置IFS为\n(IFS=$'\n'; ffmpeg -i $file) 处理文件名为my video.mp4的视频文件。FFmpeg Error ( no such file or directory error)Bash and filenames with spacesLooping through files with spaces in the names? [duplic...

2020-04-11 10:07:35

pread() read only xxxx of yyyy

Refer to pread() read only xxxx of yyyy通常是读取正在修改的文件造成的。

2020-03-04 19:27:41

nginx 访问频率限制 (limit_req_zone) 及白名单配置

https://www.nginx.com/blog/rate-limiting-nginx/

2020-03-03 10:08:01

在服务器上搭建git仓库

在本地项目中导出裸仓库 git clone --bare ./ ../project_name.git上传到服务器上pscp -r ../project_name.git user_name@ip_or_hostname:/git_path/在本地仓库中设置服务端的git地址git remote add origin user_name@ip_or_hostname:/git_path/pr...

2019-12-26 15:28:09

elasticsearch 7 批量删除文档。

参考 StackOverflow 问题Delete all documents from index/type without deleting type 的 回答curl -XPOST 'localhost:9200/materials/_delete_by_query?conflicts=proceed&pretty' -H 'Content-Type: application/j...

2019-12-12 20:31:29

com.mysql.jdbc.Driver not loaded 或者 com.mariadb.jdbc.Driver not loaded

logstash Error: com.mariadb.jdbc.Driver not loadedCannot load driver class: com.mysql.jdbc.Driver Spring

2019-12-06 18:20:54

使用 SQL 进行排名搜索

参考 Ranked search with SQL计算term的出现次数。SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4)) AS Occurrences以次数进行排序。SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4) ...

2019-11-09 17:19:11

PHP从周数创建DateTime

参考:How to create datetime from week number$date = (new DateTime())->setISODate($year,$week,$day)->setTime($hour,$minute,$second,$microseconds);

2019-11-09 17:08:02

python数学公式展示

参考Print latex-formula with python

2019-10-22 09:59:49

启用右键查看功能

参考How to re-enable right click so that I can inspect HTML elements in Chrome?

2019-10-21 15:36:38

使用 let's encrypt, certbot 生成 https 证书常见问题

sudo certbot certonly --cert-name example.com1.Problem binding to port 80: Could not bind to IPv4 or IPv6.停止nginx等服务, Refer to Letencrypt renewal fails: Could not bind to IPv4 or IPv6… Skipping2.Fa...

2019-09-03 12:05:21

mysql主从复制,server 或 Docker容器

mysql set up replication refer to Mysql docOn master check if logging binary enabled:show variables like 'log_bin', refer to how to know if mysql binary log is enable through sql command?1.Config m...

2019-09-03 10:26:42

查看更多

勋章 我的勋章
  • GitHub
    GitHub
    绑定GitHub第三方账户获取
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv1
    勤写标兵Lv1
    授予每个自然周发布1篇到3篇原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。