1.查看进程信息①进程查看 ps -aux ②根据PID查看进程 ps -aux | grep pid ③进程计数,查看指定进程 ps -aux | wc -l ps -aux | grep kworker 2.查看端口占用信息①查看各个端口占用信息 netstat -an ②查看指定端口占用信息 ...
分类:
系统相关 时间:
2021-02-02 10:39:00
阅读次数:
0
# linux 下 取进程占用 cpu 最高的前10个进程ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head # linux 下 取进程占用内存(MEM)最高的前10个进程ps aux|head -1;ps aux|grep -v PID|so ...
分类:
系统相关 时间:
2021-01-30 11:52:19
阅读次数:
0
Q:第一次提交wordcount案例,OK,一切正常。再次提交,出现下述错误。完整错误粘贴如下: 21/01/27 14:55:48 INFO spark.SecurityManager: Changing modify acls groups to: 21/01/27 14:55:48 INFO ...
分类:
编程语言 时间:
2021-01-28 11:56:52
阅读次数:
0
批量将管理端口17001变更成18001,如下脚本: [root@pxc1 ~]# grep -Rl "17001" /weblogic/web11g36|xargs sed -i 's/17001/18001/g' ...
分类:
其他好文 时间:
2021-01-28 11:38:08
阅读次数:
0
yum是一个shell前端软件包管理器,也是基于rpm包管理,能够从指定的服务器自动下载rpm包并安装,可以自动处理依赖关系,并且一次性安装所以依赖的安装包。 yum的基本指令 1)查询yum服务器是否有需要安装的软件yum list | grep xxx 2)安装特定的yum包yum instal ...
分类:
其他好文 时间:
2021-01-27 13:51:50
阅读次数:
0
一、linux CPU大小 cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id" 说明:Linux下可以在/proc/cpuinfo中看到每个cpu的详细信息。但是对于双核的cpu,在cpuinfo ...
分类:
系统相关 时间:
2021-01-25 10:49:16
阅读次数:
0
原题链接 dp[i]表示信息传递到第i个烽火台时花费的最少代价 dp[i]=min(dp[j])+a[i];i-m<=j<=i-1 单调队列优化 const int maxn=1e6+7; int a[maxn],n,m; int dp[maxn],q[maxn]; int main(){ n=re ...
分类:
其他好文 时间:
2021-01-21 10:59:48
阅读次数:
0
文件權限 什么是文件权限: 我们对当前文件可以干什么 看 写入 删除 执行 root 拥有最高执行权限 一个权限可以控制它 普通文件的默认权限 我们创建 vim touch echo后默认的权限 rw-r--r-- r 4 read 读取文件 cat less more vim sed w 2 wr ...
分类:
系统相关 时间:
2021-01-21 10:55:18
阅读次数:
0
1.环境如下 主机名 IP 角色 2.部署前准备 1.环境准备,所有节点分别配置。 关闭防火墙: $ systemctl stop firewalld $ systemctl disable firewalld 关闭 selinux: $ sed -i 's/enforcing/disabled/' ...
分类:
其他好文 时间:
2021-01-20 12:03:09
阅读次数:
0
DynamoDB supports two types of primary keys: Partition key: A simple primary key, composed of one attribute known as the partition key. Attributes in ...
分类:
其他好文 时间:
2021-01-19 12:30:09
阅读次数:
0