加载中
nginx 配置

启动nginx容器 docker run --rm -it -p 8181:80 nginx:alpine /bin/sh # 在容器内启动nginx nginx 修改nginx配置 cat /etc/nginx/conf.d/default.conf server { listen 80; server_name loc...

2022/08/19 07:38
151
celery和redis安装

celery环境搭建 pip install eventlet pip install -U Celery pip install "celery[redis]" 服务器redis环境搭建 echo 'requirepass 123456' > /root/redis.conf docker run -d -p 6379:637...

2022/08/10 07:12
142
Django跨域设置

对于前后端分离的项目需要进行跨域设置,否则可能出现浏览器的前端页面请求后端接口报错的情况。 解决跨域的方法: pip install django-cors-headers 在settings.py中设置相关配置: INSTAL...

2022/07/12 07:32
111
Django视图

Django视图的本质: 通过查看Django官方文档的定义: A view function, or view for short, is a Python function that takes a web request and returns a web response. This response ca...

2022/07/11 07:31
92
MacOS 安装python mysql-client,解决Unsupported architecture报错

macOS下安装python mysqlclient 部分报错信息如下: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture #error U...

2022/06/30 07:47
1K
docker 运行mysql报错处理

~]# mysql -h 127.0.0.1 -u root -p Enter password: ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_passwo...

2022/06/16 17:24
130
Vue项目设置404页面

在vue-router中设置404 路由, 由于路由是从上到下进行匹配的,所以将未匹配的路由,即需要跳转到404页面的路由设置在最后 const routes = [ { path: "/login", component: LoginView, ......

2022/06/01 07:40
3.2K
给vue项目添加element-plus组件

给vue项目添加element-plus组件 vue_login % vue add element-plus 📦 Installing vue-cli-plugin-element-plus... added 1 package in 1s ✔ Successfully installed plugin: vue-cli-plu...

Shell脚本相关注意事项

本文分享了关于Shell脚本的相关注意事项,这些点在实际的工作中可能会经常遇到。 tips1:注意脚本的执行路径的设置和获取。 在使用Shell脚本来处理日常工作中的事务时,需要特别注意脚本的执行...

2022/04/05 18:29
327
查找目录下所有的软链接文件

find /data -type l|xargs ls -l > result

2022/01/14 10:38
308
ControlPersist特性自动登录ssh服务器

[root]# cat ~/.ssh/config Host web ServerAliveInterval 10 HostName 11.11.11.11 User root ControlMaster=auto ControlPersist=60m ControlPath ~/.ssh/%r@%h:%p 如果你需要在多个窗口中...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部