一、参考源码 <?php $localhost="localhost"; $root="root"; $password="123456"; $datebest="db_ku"; $conn=mysqli_connect($localhost,$root,$password,$datebest) o ...
分类:
数据库 时间:
2020-07-02 09:34:53
阅读次数:
105
安装了react-redux后,npm start报下面错误 Failed to compile. ./node_modules/_react-redux@7.2.0@react-redux/es/connect/mapDispatchToProps.js Module not found: Can ...
分类:
其他好文 时间:
2020-07-01 14:19:25
阅读次数:
78
centos8如何重启网络服务 1.重启网卡之前一定要重新载入一下配置文件,不然不能立即生效 1 nmcli c reload 2.重启网卡(下面的三条命令都可以): 1 2 3 nmcli c up ens160 nmcli d reapply ens160 nmcli d connect ens ...
分类:
其他好文 时间:
2020-07-01 09:16:20
阅读次数:
884
获取随机字符串或数字 随机获取8位字符串 # 方法一 echo $RANDOM |md5sum |cut -c 1-8 d2614e90 # 方法二 openssl rand -base64 4 6kLKvQ== # 方法3 cat /proc/sys/kernel/random/uuid |cut ...
分类:
系统相关 时间:
2020-06-30 22:26:01
阅读次数:
99
Can’t login: Connect to api.github.com:443 [api.github.com/13.250.168.23] failed: Connection refused: connect
this.wxInfo.redirect_uri = encodeURIComponent(window.location.href); var h = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + this.wxInf ...
分类:
微信 时间:
2020-06-30 17:39:40
阅读次数:
150
import pymysql 1.登录mysql conn = pymysql.connect(host= '127.0.0.1',user='root',password='123',database='homework') 2.获取游标 cur = conn.cursor() # cur = c ...
分类:
数据库 时间:
2020-06-30 14:27:33
阅读次数:
71
解决的问题:将请求分发至同一主机的不同端口(不考虑容器)支持:httpsupstream api { server 127.0.0.1:5000 weight=1; server 127.0.0.1:5001 weight=1; server 127.0.0.1:5002 weight=1;}ser ...
分类:
其他好文 时间:
2020-06-30 13:06:50
阅读次数:
71
答: 在Dockerfile中添加以下语句来配置apt-get 从当前的系统中复制/etc/apt/sources.list以及/etc/apt/apt.conf到Dockerfile所处的目录中 $ cp /etc/apt/sources.list ./ $ cp /etc/apt.conf ./ ...
分类:
系统相关 时间:
2020-06-30 12:47:49
阅读次数:
121
pymysql安装 pip install pymysql 基本使用 1.创建数据库链接 connect = pymysql.connect( host='localhost', port=3306, user='root', password='123456', database='autotes ...
分类:
数据库 时间:
2020-06-30 11:15:41
阅读次数:
89