var user = { name:"angdh", age:11, }; console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user),null,2) ); { "name": { "value": "angdh", "wri ...
分类:
Web程序 时间:
2021-07-02 16:01:40
阅读次数:
0
http://nginx.org/en/download.html ``` mac安装 nginx Mac:brew install nginx ``` 出错提示。参考一下链接 #### mac环境下brew command not found错误的解决方法 http://www.chenxm.cc ...
分类:
系统相关 时间:
2021-07-02 15:42:25
阅读次数:
0
一、SWAP分区大小设置参考: 4G以内的物理内存,SWAP 设置为内存的2倍。 4-8G的物理内存,SWAP 等于内存大小。 8-64G 的物理内存,SWAP 设置为8G。 64-256G物理内存,SWAP 设置为16G。 二、扩充或缩小SWAP分区: [root@node1 ~]# swapon ...
分类:
系统相关 时间:
2021-07-01 17:36:10
阅读次数:
0
环境 centos 7 安装依赖包 yum install -y gcc gcc-c++ glibc glibc-devel pcre pcre-devel zlib zlib-devel openssl openssl-devel \unzip psmisc bash-completion lib ...
分类:
系统相关 时间:
2021-07-01 17:29:41
阅读次数:
0
一、环境介绍 官方文档:https://kubernetes.io/zh/docs/setup/production-environment/container-runtimes/#containerd [root@master ~]# kubectl get node -o wide NAME S ...
分类:
其他好文 时间:
2021-07-01 17:27:57
阅读次数:
0
import pymysql,xlwt def export_excel(table_name): host,user,passwd,db='192.168.1.152','root','myjcyf','us_sys' coon=pymysql.connect(host=host,user=use ...
分类:
其他好文 时间:
2021-07-01 17:27:29
阅读次数:
0
1.进入MySql数据库 mysql -uroot -p 2.查看数据库show databases; 3.创建数据库(GoTest)CREATE DATABASE GoTest 4.创建数据表()USE GO_TEST;CREATE TABLE `User`( `Id` BIGINT(20) NO ...
分类:
数据库 时间:
2021-07-01 17:27:15
阅读次数:
0
Dajngo查询数据,查询出来之后生成Excel保存本地 class ExportExcel(APIView): def post(self, request, *args, **kwargs): export_time = request.data.get('startEndTime') user ...
分类:
其他好文 时间:
2021-07-01 17:21:58
阅读次数:
0
一.多节点启动 节点1:1.117.173.54:8080 节点2:1.117.173.54:8088 二.配置nginx集群访问 在server结点上方添加 upstream lbs { server 1.117.173.54:8080; server 1.117.173.54:8088; 在se ...
1.安装python sudo yum install -y curl policycoreutils-pythonopenssh-server 2.将SSH服务设置成开机自启动,分别执行以下命令: sudo systemctl enable sshd sudo systemctl start ss ...
分类:
系统相关 时间:
2021-07-01 17:07:32
阅读次数:
0