logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

python中使用pip install 命令时报ssl缺失的错误

python中使用pip install 命令时报ssl缺失的错误

yum命令因升级python以及更换Yum源后报错

yum命令因升级python以及更换Yum源后报错

ubuntu 安装 wine最新稳定版

对于ubuntu 18.10:添加仓储:1. 下载秘钥:wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key2. 导入秘钥:sudo apt-key add Release.key3. 添加仓储sudo a...

php中parse_str函数的一些注意点

$data = $this->getRequestParam('data');parse_str(htmlspecialchars_decode($data),$myData);一,php7.2后不支持不给第二个参数使用。二,如果接受的数据被 htmlspecialchars等函数实体化过,则需要转回来,不然mydata数组的键中会存在实例化字符。三,如果字符被urlencode过:func

php 使用curl发送图片素材到微信临时素材库

//图片素材保存到微信临时素材库并返回mediaIDaprotected function sendImgtoWechat($username = ''){$saveDir = ROOTPATH . '/web/images/qrcode/';$file = $saveDir . $username . '_nj.png';//如果不存在if (!file_exists($file)) {...

docker运行nginx为什么要使用 nginx -g 'daemon off;'

1.docker容器跑着为啥会挂掉?docker 容器默认会把容器内部第一个进程,也就是pid=1的程序作为docker容器是否正在运行的依据,如果docker 容器pid挂了,那么docker容器便会直接退出。2.docker run的时候把command最为容器内部命令,如果你使用nginx,那么nginx程序将后台运行,这个时候nginx并不是pid为1的程序,而是执行的bash,...

数据库连接报错:SQLSTATE[HY000] [2002] No such file or directory

无论是pdo还是mysqli出现这个问题的原因是php操作mysql无法找到mysql.sock或者mysqld.sock,这根据你的mysql配置文件而定,比如[mysqld]basedir=/usr/local/mysqldatadir=/usr/local/mysql/datapid-file=/usr/local/mysql/mysqld.pidsocket=/usr/l...

js将图片或视频生成base64

<html><body><input type="file" name="imgs" id="imgs" value="" onchange="return filechange()"/></body><script>function filechange(){var img = event.target.files[0];//选择的文件

阿里云中国省市县数据接口

省(全国各省)http://datavmap-public.oss-cn-hangzhou.aliyuncs.com/areas/csv/100000_province.json市(四川为例),修改数字id即可http://datavmap-public.oss-cn-hangzhou.aliyuncs.com/areas/csv/510000_city.json县http://datavmap-

nginx伪静态在目录后加斜杆/,指定后缀则不加

需要在url访问后缀加/ ,而html等指定后缀不需要加:if ($request_uri!~*\.html$) {rewrite ^(.*[^/])$ $1/ permanent;}

    共 42 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 请选择