脚本 状态centos7 centos
StatefulWidget StatelessWidget 有状态 无状态
StatefulWidget class - widgets library - Dart API https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html StatelessWidget class - widgets li ......
centos 离线安装 mysql5.7
# 下载离线安装包 tar https://dev.mysql.com/downloads/mysql/5.7.html#downloads (mysql-5.7.43-linux-glibc2.12-x86_64.tar.gz) # 移动到安装目录解压 /usr/local/ tar -zxvf ......
centos7 中 configure: error: libcurl library not found
001、configure: error: libcurl library not found 002、解决方法 [root@pc1 test01]# yum -y install libcurl-devel 。 ......
centos7中 configure: error: liblzma development files not found
001、configure: error: liblzma development files not found 002、解决方法 [root@pc1 test01]# yum -y install xz-devel 。 ......
centos7中 configure: error: libbzip2 development files not found
001、configure: error: libbzip2 development files not found 002、解决方法 [root@pc1 test01]# yum -y install bzip2-devel 。 ......
centos7 中 bash: pip: command not found...
001、系统信息、问题 [root@pc1 software]# cat /etc/redhat-release ## 系统信息 CentOS Linux release 7.6.1810 (Core) [root@pc1 software]# pip install pysam # bash: p ......
centos7中 configure: error: zlib development files not found
001、configure: error: zlib development files not found 002、解决方法: [root@pc1 test01]# yum -y install zlib-devel 。 ......
ESP32 idf常用脚本命令及git命令
####一、Linux环境 1.下载并安装相关的工具 `./install.sh ` 2.添加ESP-IDF工具到PATH中 `. ./export.sh ` 3.打开配置界面 `idf.py menuconfig` 4.设置编译的芯片型号 `idf.py set-target esp32c3` 5 ......
Centos误删系统自带python2.7,yum报错恢复方法
使用wget分别下载python以及yum的rpm包 资源地址如下: http://vault.centos.org mkdir /usr/local/src/pythoncd /usr/local/src/pythonwget http://vault.centos.org/7.6.1810/os ......
在CentOS8下安装MySQL8.0.31
一、登录官网主页:https://www.mysql.com/downloads/,选择社区版下载,如下图: 选择MySQL Community Server: 选择Archives: 按照下图步骤,获取下载的IP地址 最终拿到的官网地址为:https://downloads.mysql.com/a ......
Centos7 配置清华源
1 备份现有的yum源 cd /etc/yum.repos.d/ mkdir bak mv *.repo /etc/yum.repos.d/bak 2 创建清华yum源 vim /etc/yum.repos.d/QingHua.repo # CentOS-Base.repo # # The mirr ......
cento 申请ssl证书笔记
如果您的Certbot工具没有内置的Nginx插件,您可以尝试以下方法来申请证书并配置Nginx服务器: 1. 安装Certbot的Nginx插件: ``` sudo yum install certbot-nginx ``` 这将安装适用于Nginx的Certbot插件。 2. 执行Certbot ......
Centos7安装VNC
## 安装vnc ```bash #检查可用版本 [root@vnc ~]# yum --showduplicates list tigervnc-server #安装vnc [root@vnc ~]# yum install -y tigervnc-server #设置密码 [root@vnc ~ ......
CentOS7 防火墙特定开启端口
CentOS7 防火墙特定开启端口 为服务器的安全建议开启服务器。那么问题来了,服务器的服务不关闭防火墙访问不了。那么就来了解一下,服务器放行特殊端口的命令吧。 #首先查看防火墙状态firewall-cmd --state如果出现如下:表示已经关闭防火墙not running下面是centos7关闭 ......
redis执行lua脚本
[toc] ## redis执行lua脚本 ### 简介 ```markdown 1. 原子操作: redis对lua脚本执行具备原子性 不需要事务维护 2. 复用高效: 客户端发送的脚本除非通过script flush清除 否则会一直被缓存 且lua由c编写而成 加载和运行速度都很快 支持不同平台 ......
nginx同步脚本
1. 检测nginx进程是否存在异常 `#!/bin/bash #收集nginx进程pid pid=$(ps -ef |grep nginx|grep worker|awk '{print $2}') #收集第一个nginx进程的pid,打上时间戳 pid0=$(ps -ef |grep nginx ......
redis分布式锁,setnx+lua脚本的java实现
本文是基于redis缓存实现分布式锁,其中使用了setnx命令加锁,expire命令设置过期时间并lua脚本保证事务一致性。Java实现部分基于JIMDB提供的接口。 ......
centos7无法连接外网分析与解决
设备重新启动或开机时ip地址往往是会发生变化的,所以如果linux中ip地址有变动 我们将需要进行逐个修改ip是比较麻烦及其不方便的。 我们可以将Linux ip地址进行配置为静态ip ,规避上面的问题 一、编辑网卡配置文件 1、配置文件地址 需要注意的是,网卡配置文件可能是ifcfg-ens33也 ......
bat 脚本
@echo offsetlocal enabledelayedexpansion set "inputFile=rs.txt"set "outputFile=outputrs.txt" if not exist "%inputFile%" ( echo Input file "%inputFile% ......
centos7下安装libreoffice供word和ppt转pdf预览使用
一、卸载系统当前的libreoffice并安装新的,执行如下命令:yum remove libreoffice-* 在命令行执行libreoffice --version,检查是否已经安装LibreOffice。 1、在centos7下安装LibreOffice,可直接使用yum安装即可,在命令行输 ......
centos7.9 yum python3.8
一、操作步骤1、在CentOS或RHEL系统上安装额外的企业级Linux软件包(EPEL)存储库。EPEL存储库提供了一些在默认存储库中不可用的附加软件包。如果您想要使用EPEL存储库中的软件包,您需要在系统上具有管理员权限。 yum install epel-release2、在CentOS或RH ......
Shell - 脚本入门
<!-- 开头部分我准备设置目录 --> 脚本格式 脚本以 #!/bin/bash 开头(指定解析器) HelloWorld 【需求描述】 创建一个Shell脚本(helloWorld.sh),输出Hello World! #!/bin/bash echo "Hello World!" 【脚本执行】 ......
request请求但脚本爬取
import requestsfrom lxml import etreeurl = "https://duanzixing.com/"headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/5 ......
CentOS系统中使用SSH进行远程连接
安装SSH客户端和服务器 在CentOS系统中,默认情况下已经安装了OpenSSH客户端和服务器。如果没有安装,可以通过以下命令来安装: sudo yum install openssh-server openssh-client 启动SSH服务,注意要切换root账号执行命令 安装完毕后,需要启动 ......
centos7.9+php+apache 配置阿里云ssl
1、前往阿里云官网申请免费证书选择 2、证书存放在/etc/cert 3、httpd.cof 配置ssl <VirtualHost _default_:443> ServerName 域名 DocumentRoot 网站根目录 SSLEngine on SSLProtocol all -SSLv2 ......
ref() reactive() 声明响应式状态
ref函数 使用ref函数将普通数据变成响应式数据 reactive函数 把对象和数组这类复合数据类型数据变成响应式数据 <template> <span> <span id="num">{{num}}</span> <input type="button" value="+1" @click="f ......
Centos7 安装 seata1.7.0
seata 官网 : https://seata.io/zh-cn/index.html seata下载地址: https://github.com/seata/seata 1、下载seata包 wget https://github.com/seata/seata/releases/downloa ......
使用source执行shell脚本和直接执行的区别
使用 `source` 命令和 `./` 形式来执行 shell 脚本有一些重要的区别: 1. **作用域:** - **`source` 或 `.`:** 使用 `source` 命令(或 `.`)来执行脚本时,脚本在当前 shell 环境中执行。这意味着,脚本中的任何变量、函数定义等在执行后仍然 ......
第一个shell脚本
#### 需求背景: 公司需要把服务器本地备份的sql数据,备份到另一台ftp服务器上。 #### 需求分析: 1.因本地数据库备份为最近5天的数据集,故需要找到当天的数据文件 2.备份至ftp服务器上,故需要ftp命令。 3.定时任务每天执行 代码一:异地本分脚本 ```bash ......
centos7磁盘在线扩容
1、添加新磁盘 2、fdisk -l查看磁盘被识别的名称 3、如果输入fdisk -l命令没有找到新的磁盘,按下面步骤操作 1)进入到cd /sys/class/scsi_host/ 2)echo "- - -" > host0/scan #接口扫描新加磁盘即可,如果输入命令还是没有找到则将host ......