会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
PythonNew_Mr.Wang
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2023年9月26日
【Mysql】使用 Docker 启动 mysql,配置挂载数据文件夹与配置文件
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)
2023年9月21日
【Mysql】基础
基本命令 # 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)
2023年9月6日
【VUE】倒计时计算
```JS ```
Read More
posted @ 2023-09-06 17:19 PythonNew_Mr.Wang
Views(61)
Comments(0)
Diggs(0)
2023年9月1日
【NGINX】负载均衡、动静分离、Keepalived高可用
### 负载均衡 ```nginx http { # 集群服务配置: # 指令: # down:手动将一个服务器标记为不可用。标记为不可用的服务器将不接收任何请求。 # backup:备份服务器,当主服务器不可用时,请求将被转发到备份服务器上。 # weight:设置服务器的权重,可以根据服务器的性
Read More
posted @ 2023-09-01 16:47 PythonNew_Mr.Wang
Views(68)
Comments(0)
Diggs(0)
【NGINX】反向代理、跨域配置、SSL证书配置
### 反向代理 ```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)
2023年8月30日
【NGINX】配置访问、文件传输、压缩文件功、资源缓存、防盗链
### 配置访问: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)
2023年8月22日
【Docker】基础命令
安装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)
2023年8月13日
【PYQT5】textEdit添加内容,滚动条自动向下
```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)
【PYQT5】创建线程,防止执行函数卡死界面
```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)
2023年8月1日
【Python小随笔】Pillow简单示例(图片添字,图片覆盖图片,复杂验证码...)
### 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
下一页
公告