cat CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to p ...
分类:
其他好文 时间:
2021-07-19 16:46:42
阅读次数:
0
依赖安装 # 在CentOS系统上安装所需的依赖:ssh,防火墙,postfix(用于邮件通知) ,wget,以下这些命令也会打开系统防火墙中的HTTP和SSH端口访问。 yum install curl openssh-server openssh-clients postfix cronie - ...
分类:
其他好文 时间:
2021-07-19 16:46:25
阅读次数:
0
(43条消息) Mac上修改Sublime Text 3选中文本的背景色_gaoyp的专栏-CSDN博客https://blog.csdn.net/gaoyp/article/details/88990555 颜色表大全 颜色代码 设计配色表 网页配色表-www.5tu.cnhttps://www. ...
Delphi的中文错误提示 ';' not allowed before 'ELSE' ElSE前不允许有“;”'' clause not allowed in OLE automation section 在OLE自动区段不允许“”子句'' is not a type identifier 不是类 ...
# 判断输入的字符是不是数字,以及它是否大于等于0,如果大于0,返回它,小于0,返回它的相反数。def function(x): if x.isdigit() and int(x) >= 0: # 判断是否都是数字,是的话赋予int型 return x elif x.isalpha(): # 判断是 ...
分类:
编程语言 时间:
2021-07-19 16:38:52
阅读次数:
0
一、echo的用法 1、echo -n 表示不换行输出 2、echo -e 输出转义字符,将转义后的内容输出到屏幕上 常见的转义字符有: 2.1 \b 相当于退格键 转义后相当于退格键(backspace),但是前提是“\b”存在字符。“\b”表示删除前一个字符,“\b\b”表示删除前面两个字符 2 ...
分类:
系统相关 时间:
2021-07-19 16:32:19
阅读次数:
0
FastAPI https://fastapi.tiangolo.com/#performance FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based ...
分类:
编程语言 时间:
2021-07-16 17:45:01
阅读次数:
0
CentOS7查看开放端口命令及开放端口号 查看已开放的端口 firewall-cmd --list-ports 开放端口(开放后需要要重启防火墙才生效) firewall-cmd --zone=public --add-port=3338/tcp --permanent 重启防火墙 firewal ...
分类:
其他好文 时间:
2021-07-16 17:42:16
阅读次数:
0
当在VMware虚拟机中将CentOS安装成功后,会在win7系统中模拟出两个虚拟网卡:VMnet1和VMnet8,我们来查看一下,点击“控制面板—>查看网络状态和任务—>更改适配器设置”,出现如下界面: 打开虚拟机,选择“虚拟机—>设置”,弹出如下界面: 如果要保证虚拟机能够和物理机进行通信,或者 ...
分类:
其他好文 时间:
2021-07-16 17:40:35
阅读次数:
0
import os dirlist = os.listdir() #打开文件 fo = open("dirs.txt","w") #遍历 for dir in dirlist: #判断如果是文件夹 if os.path.isdir(dir): #写 file.write(str(os.path.ab ...
分类:
编程语言 时间:
2021-07-16 17:33:40
阅读次数:
0