参考文章:https://www.cnblogs.com/slyy/p/12299625.html 编辑文件:vim /etc/systemd/logind.conf修改HandleLidSwitch=ignore刷入参数systemctl restart systemd-logind主要参数:HandlePowerKey 按下电源键后的行为,默认power offHandleSleepKey 按下挂起键后的行为,默认suspendHandleHiber 阅读全部
输入数组的值:ERRID=(4 1 3 4)查阅数组的所有数值:[root@cd3 ~]# echo ${ERRID[@]}
4 1 3 4生成数组的数量序号,用于for循环。[root@cd3 ~]# echo ${!ERRID[@]}
0 1 2 3查询数组中的第二位值:[root@cd3 ~]# echo $ 阅读全部
指定运行线程,在执行程序之前,加入命令taskset -c 0-7 ./xxx
taskset -c 8-15 ./xxx注解,上方两个命令均调用了8个线程,总线程通过lscpu查看。根据下方回显,获取可用线程。On-line CPU(s) list: 0-15以高优先级启动,且只调用前四个线程。nice -n-20 taskset -c 0 阅读全部
项目地址:https://github.com/adnanh/webhook官方文档:https://github.com/adnanh/webhook/tree/master/docs为什么会使用Webhook?Webhook是一个可以用于前后端自动化交互的一个手段,通过http就可以实现前后端交互,以及和其他网站的协同交互,规则触发实现自动化运维等。我是近期了解到Webhook的,此处简单记录学习笔记。Webhook部署:进入项目地址下载对应版本再放入自定义目录即可,没有什么好说的。如果是编 阅读全部
来源:https://blog.csdn.net/u011558418/article/details/104673520新建文件rcon.c ,输入以下C代码:/*
# This is a simple linux command line utility to execute rcon commands
# Just change the& 阅读全部
html代码示例:<div style="color:#4682B4;text-align:center;">
<a name="top" id="top_anchor">
&n 阅读全部
示例1: upstream wssh {
hash $remote_addr consistent;
&nbs 阅读全部
在Linux环境可以通过ln命令来链接路径,但Windows环境下默认只能通过创建快捷方式lnk文件链接。此操作对文件夹的复制不友好,很多程序不能识别到文件夹,多数情况下当成lnk文件处理,通过junction命令可解决此问题。参考:windows下对应linux的ln命令_cai555的博客-CSDN博客程序下载及手册:Junction - Windows Sysinternals | Microsoft Docs用法(CMD中使用):The first usage&nbs 阅读全部
案例使用java16,发现可以直接运行:https://openjdk.java.net/projects/jdk/16/ java16下载:https://download.java.net/openjdk/jdk16/ri/openjdk-16+36_linux-x64_bin.tar.gz 于是将包内的bin路径添加到系统变量$PATH就能直接使用,如下:vim /etc/profile   阅读全部
脚本如下:#!/bin/bash
LOGFILE="/slview/ITE-PON-NEW/resin/log/jvm-default.log"
RESINPATH="/slview/ITE-PON-NEW/resin/"
while true
do
LOGWC1=`wc -l ${LOGFILE} | awk '{print $1}'`
sl 阅读全部
‹‹
1
2
3
4
5
6
7
8
9
>
››