shutdown和close都可以用来关闭TCP连接, 那么它们有区别与联系呢? 下面来研究下这个问题: 1. close 关闭连接和套接字. 成功返回0; 失败为-1, errno被设置 #include <unistd.h> int close(int fd); close会把描述符(sockf ...
1、下载 https://downloads.mysql.com/archives/community/ wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.62-linux-glibc2.12-x86_64.tar.g ...
定时任务简介 什么是定时任务 maintains crontab files for individual users 为单一用户维护crontab文件 为什么要使用定时任务 使用计划任务可以周期性的执行一些命令、脚本等,比如批量服务、备份脚本 Linux系统的定时任务分类 1、linux系统自身定 ...
VMware Workstation 与 Device/Credential Guard 不兼容。在禁用 Device/Credential Guard 后,可以运行 VMware Workstation。 bcdedit /set hypervisorlaunchtype off 想到 之前安装过 ...
shell 编程 一、Shell 变量 定义变量时,变量名不加美元符号($,PHP语言中变量需要),如: your_name="runoob.com" 注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。同时,变量名的命名须遵循如下规则: 命名只能使用英文字母,数字和下划线,首个 ...
在 linux 下面,查找路径一般是 where ,但是同样的命令在PS下面是不行的。 在PS下有个查看别名的命令:Get-Alias ,看一下where是啥? Alias where -> Where-Object 原来 where 是 Where-Object 这个命令的别名,并不是查看路径用的 ...
进程理论:1. 进程和程序 程序:存放在硬盘上的一大堆代码,其状态是"死"的 进程:程序正在运行的过程,其状态是"活"的 2. 进程调度算法 对于多个进程的执行,都需要抢占CPU资源,而对于CPU仅存在一个的情况下,就需要使用进程调度算法来合理分配CPU资源 先来先服务调度算法 对于多个进程,按照先 ...
因为某种应用场景我需要将特定目录下的txt文件进行清理,核心命令如下: find 目录 -name '*.txt' -type f -print -exec rm -rf {} \; 例如: find /home/tech/data_log -name '*.txt' -type f -print ...
1:查看防火状态 systemctl status firewalld service iptables status 2:暂时关闭防火墙 systemctl stop firewalld service iptables stop 3:永久关闭防火墙 systemctl disable firew ...
Prerequisites: Windows 10 Hyper-V Virtual machine parameters: Memory 2GB Hard Drive 20GB Provisioning: Launch Hyper-V, click on new > Virtual Machine ...