05 2024 档案
摘要:[root@dsc1 mydjango]# ps ax | grep uwsgi 18835 ? S 0:01 uwsgi -i mydjango.ini 18836 ? Sl 0:42 uwsgi -i mydjango.ini 18837 ? Sl 0:42 uwsgi -i mydjango.
阅读全文
摘要:1.创建子应用python manage.py startapp cmdb 可以创建多层级目录的app 2.加入到项目中
阅读全文
摘要:1.安装python[root@dsc1 nginx]# python -VPython 3.6.5 2.安装数据库yum install mysql mysql-develyum install sqlite-devel 3.安装django [root@dsc1 mydjango]# pip3
阅读全文
摘要:[root@dsc1 mydjango]# pip3 install django pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Co
阅读全文
摘要:前提条件: 需要安装django,可以参考如下连接: https://www.cnblogs.com/hxlasky/p/18270726 1.创建项目 发现报错误: 解决办法: https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-
阅读全文
摘要:环境:OS:Centos 7vue版本:3.0 1.打包npm run build 2.这个时候会生成一个dist目录C:\Users\Administrator\PycharmProjects\myvue02\dist 3.将dist文件夹上传到ngnix中的html目录中/usr/share/n
阅读全文
摘要:1.安装nginx[root@dsc1 ~]#yum install -y nginx[root@dsc1 ~]# rpm -qa | grep nginxnginx-1.20.1-10.el7.x86_64nginx-filesystem-1.20.1-10.el7.noarch 2.启动syst
阅读全文
摘要:1.新增文件 MyVue.vue 文件内容如下: <template> <div class="hello"> <h1>{{msg}}</h1> </div> </template> <script> export default { name: 'MyVue', data () { return
阅读全文
摘要:1.安装node.js确保在机器上安装了node.js安装步骤请参考: https://www.cnblogs.com/hxlasky/p/18220337 C:\Users\Administrator>node -vv20.14.0 C:\Users\Administrator>npm -v10.
阅读全文
摘要:环境:Os:Centos 7 1.官网下载地址地址:https://nodejs.org/en/download/prebuilt-binariesnode-v20.14.0-linux-x64.tar.xz 选择相应的版本和操作系统 2.解压安装tar -xvf node-v20.14.0-lin
阅读全文
摘要:# -*- coding: utf-8 -*- from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart imp
阅读全文
摘要:# -*- coding: utf-8 -*- from pyecharts import options as opts from pyecharts.charts import Pie import pymysql from snapshot_phantomjs import snapshot
阅读全文
摘要:1.安装fontconfigyum -y install fontconfig 2.创建chinesem目录/usr/shared/fonts目录下新建一个目录chinese#cd /usr/share/fonts#mkdir chinese 3.上传如下两个文件到目录/usr/share/font
阅读全文
摘要:环境:OS:Centos 7 1.下载地址https://phantomjs.org/download.html 2.添加环境变量/opt/phantomjs/bin [root@host134 ~]# which phantomjs/opt/phantomjs/bin/phantomjs 3.安装
阅读全文
摘要:1.114版本之前的下载地址https://chromedriver.storage.googleapis.com/index.html? 2.115之后的下载地址https://googlechromelabs.github.io/chrome-for-testing/
阅读全文
摘要:[root@host134 scripts]# more os.py # -*- coding: utf-8 -*- import datetime import time import sys import os import platform import psutil while True:
阅读全文
摘要:https://pgtune.leopard.in.ua/
阅读全文
摘要:环境:Os:Centos 7db:pg14 1.下载地址https://gitee.com/movead/XLogMiner/releases 2.安装[root@dsc1 soft]# tar -xvf walminer_x86_64_centos_v4.6.0.tar.gz[root@dsc1
阅读全文
摘要:环境:OS:Centos 7DB:pg14 pg默认的wal_segment_size是16MB,下面可以通过如下命令修改 1.关闭数据库systemctl stop postgresql-14 2.修改wal默认大小[root@dsc1 bin]# /usr/pgsql-14/bin/pg_res
阅读全文
摘要:1.查看某个表授予的权限 进入到具体的库查询 SELECT grantee,table_schema,table_name,string_agg( privilege_type,', ' ) as privilege_type FROM information_schema.role_table_g
阅读全文
摘要:语法如下: CREATE PUBLICATION name [ FOR TABLE [ ONLY ] table_name [ * ] [, ...] | FOR ALL TABLES ] [ WITH ( publication_parameter [= value] [, ... ] ) ] 1
阅读全文
摘要:环境:OS:Centos 7旧版本:pg14新版本:pg15 1.查看当前的数据库版本 su - postgres -bash-4.2$ psql -h localhost -U postgres -p5432 psql (15.6, server 14.11) Type "help" for he
阅读全文
摘要:1.服务器上执行tcpdump -i any -nn port 6379|grep hello 2.服务端执,特定主机和端口的链接(192.168.1.100为客户机器ip)tcpdump -i any -nn host 192.168.1.100 and port 6379|greo hello
阅读全文
摘要:环境:OS:Centos 7旧版本的db:pg14新版本的db:pg15升级策略:必须先升级主库,然后使用rsync升级从库 1.查看主库安装的插件 -bash-4.2$ psql -h localhost -U postgres -p5432 psql (14.11) Type "help" fo
阅读全文
摘要:环境:OS:Centos 7旧版本:pg14新版本:pg15已经安装的插件mysql_fdw_14.x86_64postgis33_14.x86_64 1.查看当前的版本 [root@dsc1 ~]# psql -h localhost -U postgres -p5432 psql (14.11)
阅读全文