1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:
系统相关 时间:
2021-04-20 14:31:15
阅读次数:
0
Centos8.3-NIS NIS-Server 安装nis相关的软件包 dnf -y install ypserv rpcbind 修改主机名 hostnamectl set-hostname node1.skills.com 设置nis域 ypdomainname skills.com echo ...
分类:
其他好文 时间:
2021-04-20 14:04:05
阅读次数:
0
sar(System Activity Reporter系统活动情况报告)是目前 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等。本文主要以CentOS 6. ...
分类:
系统相关 时间:
2021-04-19 15:09:15
阅读次数:
0
mac 上build go 如果想要在centos上面执行 必须使用下面的方式 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o hello hello.go 不然会报错 :cannot execute binary file ...
分类:
其他好文 时间:
2021-04-19 14:58:20
阅读次数:
0
前提条件: 已安装centos、docker nginx搭建方式: 1.首先进入centos系统,打开命令行 docker pull nginx:1.17.9 --安装指定版本nginx,这里选择1.17.9据说比较稳定 2.启动nginx docker run -p 80:80 nginx:1.1 ...
分类:
Web程序 时间:
2021-04-19 14:38:17
阅读次数:
0
https://www.git-scm.com/docs/git-pull https://www.runoob.com/git/git-pull.html https://www.yiibai.com/git/git_pull.html https://www.runoob.com/git/git ...
分类:
其他好文 时间:
2021-04-19 14:13:33
阅读次数:
0
核心概念 Topic:消息主题,一级消息类型,通过Topic对消息进行分类。 Tag:消息标签,二级消息类型,用来进一步区分某个Topic下的消息分类。 Message ID:消息的全局唯一标识,由消息队列RocketMQ版系统自动生成,唯一标识某条消息。 Message Key:消息的业务标识,由 ...
分类:
其他好文 时间:
2021-04-19 14:11:21
阅读次数:
0
1. 多态 多态 1.1 多态概述 代码示例: 动物类: public class Animal { public void eat(){ System.out.println("动物吃东西"); } } 猫类: 多态的前提有继承/实现关系,所以猫类要继承动物类。 public class Cats ...
分类:
编程语言 时间:
2021-04-16 12:17:46
阅读次数:
0
1.把cs文件上传至服务器 2.安装java环境 yum -y install java-1.8.0-openjdk* 3.开启服务端 ./teamserver ip 密码 ./teamserver xxx.xxx.xxx.xxx xxxxx 4.问题 出现连接超时 因为 centos 开启了防火墙 ...
分类:
其他好文 时间:
2021-04-16 12:10:45
阅读次数:
0
问题原因:逻辑卷在磁盘下,无法直接mkfs 格式化磁盘 [root@VM_0_8_centos ~]# dmsetup ls vdb1 (252:0) dmsetup remove vdb1 mkfs.xfs /dev/vdb1 ...
分类:
其他好文 时间:
2021-04-16 12:08:51
阅读次数:
0