上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
1 :先创建挂载文件夹 mkdir -p /mysql/config ; mkdir -p /mysql/data ; mkdir -p /mysql/logs 2: 创建配置文件 vim /mysql/config/my.cnf 3: 修改权限 chmod 644 /mysql/config/my Read More
posted @ 2023-09-26 20:50 PythonNew_Mr.Wang Views(1571) Comments(0) Diggs(0)
基本命令 # ROOT用户进入数据库 mysql -uroot -p # 使用用户登录数据库 mysql -u 用户名 -p # 重启mysql sudo service mysql restart # 创建数据库 create database 数据库名字 character set utf8mb Read More
posted @ 2023-09-21 11:34 PythonNew_Mr.Wang Views(43) Comments(0) Diggs(0)
```JS ``` Read More
posted @ 2023-09-06 17:19 PythonNew_Mr.Wang Views(61) Comments(0) Diggs(0)
### 负载均衡 ```nginx http { # 集群服务配置: # 指令: # down:手动将一个服务器标记为不可用。标记为不可用的服务器将不接收任何请求。 # backup:备份服务器,当主服务器不可用时,请求将被转发到备份服务器上。 # weight:设置服务器的权重,可以根据服务器的性 Read More
posted @ 2023-09-01 16:47 PythonNew_Mr.Wang Views(68) Comments(0) Diggs(0)
### 反向代理 ```nginx # 127.0.0.1 和 0.0.0.0 的区别 server { # 127.0.0.1 是一个特殊的IP地址,通常称为 "localhost" 或 "loopback" 地址。它指向本地计算机上的网络接口(即回环接口),用于在本地计算机内部进行通信。当你将请 Read More
posted @ 2023-09-01 16:43 PythonNew_Mr.Wang Views(525) Comments(0) Diggs(0)
### 配置访问:root、alias、error_page ```nginx server { listen 80; server_name localhost; # 访问 location ^~/abc { default_type text/plain; return 200 "Welcome Read More
posted @ 2023-08-30 12:05 PythonNew_Mr.Wang Views(200) Comments(0) Diggs(0)
安装docker 首先安装yum-utils,以便添加 Docker 的源 yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 安 Read More
posted @ 2023-08-22 16:26 PythonNew_Mr.Wang Views(44) Comments(0) Diggs(0)
```python class Main(QWidget, Ui_Form): def __init__(self): super(Main, self).__init__() self.setupUi(self) QTimer.singleShot(0, self.thread_check) # Read More
posted @ 2023-08-13 14:52 PythonNew_Mr.Wang Views(629) Comments(0) Diggs(0)
```python # 线程函数 class WorkerThread(QThread): resultReady = pyqtSignal(object) def __init__(self, func, *args, **kwargs): super().__init__() self.func Read More
posted @ 2023-08-13 14:17 PythonNew_Mr.Wang Views(169) Comments(0) Diggs(0)
### 1:简单创建添加文字到图片 ```python from PIL import Image, ImageDraw, ImageFont, ImageFilter # 导入PIL库中的相关模块 import random # 导入random库 # 创建一个图片对象 (200, 100) 为 Read More
posted @ 2023-08-01 16:55 PythonNew_Mr.Wang Views(355) Comments(0) Diggs(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页