后端 第7页
Debian 10安装Php8-fpm(去除apache)-Ddmit

Debian 10安装Php8-fpm(去除apache)

debian 10默认安装的php是7.3版本,安装php 8的过程如下。 安装php-fpm sudo apt update -y sudo apt-get install ca-certificates apt-transport-https software-properties-common -y sudo ec...
ddmit的头像-DdmitDdmit4年前
015150
MySQL无法进行远程连接情形排查分析-Ddmit

MySQL无法进行远程连接情形排查分析

装完MySQL数据库之后,如果客户端无法进行远程连接,可以从下面几个方面进行排查。 1.服务是否启动。 2.检查配置文件my.cnf,看是否只允许本机访问。 bind-address = 0.0.0.0 3.mysql是否增加远...
ddmit的头像-DdmitDdmit4年前
09450
Java 9将Base64图片转为字节数组-Ddmit

Java 9将Base64图片转为字节数组

由于javax.xml.bind模块在Java 9中被弃用,因此可以使用org.apache.commons.codec.binary.Base64类进行转换。 JAVA 8 byte[] imageBytes = javax.xml.bind.DatatypeConverter.DatatypeConverter...
ddmit的头像-DdmitDdmit4年前
09610
如何更改php的运行用户?-Ddmit

如何更改php的运行用户?

环境 PHP 8.0.12 修改 默认是www-data:www-data用户组运行。 修改文件sudo vi /etc/php/8.0/fpm/pool.d/www.conf,修改为你自己的用户和用户组: user = winbert group = winbert 重启php-fpm: ...
ddmit的头像-DdmitDdmit4年前
013570
如何查看php是以哪个用户运行的?-Ddmit

如何查看php是以哪个用户运行的?

Php脚本在执行时,有时会提示权限不足,这时你可能想知道PHP是以哪个用户运行的? 编辑whoami.php脚本: echo exec('whoami'); 这样访问网页(https://bbs.ddmit.com/whoami.php)会输出当前用户...
ddmit的头像-DdmitDdmit4年前
013870
MySQL启动报错:Plugin 'InnoDB' registration as a STORAGE ENGINE failed.-Ddmit

MySQL启动报错:Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

错误信息: winbert@winbert-debian:~$ sudo journalctl -xe Nov 05 13:49:51 winbert-debian mariadbd[1641]: 2021-11-05 13:49:51 0 [Note] InnoDB: Using Linux native AIO Nov 05 13:49:51 ...
ddmit的头像-DdmitDdmit4年前
019270
MySQL max_allowed_packet错误解决-Ddmit

MySQL max_allowed_packet错误解决

MySQL查询报错: ### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (2,482 > 2,048). You can change this value ...
ddmit的头像-DdmitDdmit4年前
013490
ZooKeeper伪分布式部署及真分布式环境部署步骤-Ddmit

ZooKeeper伪分布式部署及真分布式环境部署步骤

搭建之前,先自行下载安装文件,配置hosts文件等操作。 下载页面:http://zookeeper.apache.org/releases.html,下载apache-zookeeper-3.7.0-bin.tar.gz文件; 配置/etc/hosts文件,添加127.0.0...
ddmit的头像-DdmitDdmit4年前
010170
zookeeper启动报错:Address unresolved-Ddmit

zookeeper启动报错:Address unresolved

ZOOKEEPER节点启动报错信息如下: 2021-10-17 12:20:18,528 [myid:] - INFO [main:QuorumPeerConfig@174] - Reading configuration from: /home/michael/apache-zookeeper-3.7.0-bin/conf/zoo1....
ddmit的头像-DdmitDdmit4年前
018030
使用scp命令批量拷贝多个文件到远程服务器-Ddmit

使用scp命令批量拷贝多个文件到远程服务器

向将本地的某个文件,复制到多个远程服务器,操作步骤如下。 1.配置免密登录,过程参考:使用SSH密钥登录让Linux VPS服务器更安全; 2.编辑脚本scp-file.sh,内容如下: #!/bin/bash servers=('2...
ddmit的头像-DdmitDdmit4年前
011650