index
-
火狐关闭全屏过渡动画特效
地址栏输入 about:config 回车进入配置页面。分别搜索下面三项,功能看注释 (1)full-screen-api.warning.timeout 双击设置为 0 //关闭视频进入全屏时的提示 (2)full-screen-api.transition-duration.enter 双击设置为 ‘0 0’ // 去除全屏模式的过渡动画–进入 (3)full-screen-api.tran…... -
nginx: [error] invalid PID number “” in “/usr/local/nginx/logs/nginx.pid”
执行 /usr/local/nginx# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf nginx -s reload 后重启即可 ... -
MYSQL8.0 Navicat远程连接主机与报错显示主机不相同,telnet显示pkGf#B\caching_sha2_password2#08S01Got timeout reading communication packetsCo
这点问题折腾一晚上,进入mysql,执行下面代码后 更改mysqld文件的绑定端口后重启数据库 mysql -u用户名 -p密码; use mysql; create user 'root'@'%' identified by '(redacted)'; grant all privileges on *.* to 'root&…... -
django报错 type object ‘xxxxx’ has no attribute ‘object’
没有导入UserManager的包 from django.contrib.auth.models import UserManager 多见于新手,比如我 随后在class中写入 objects = UserManager() 使objects 拥有UserManager,随后利用函数名.objects.create(字段名="值") for example : def em…... -
Centos8换阿里云源教程–服务器可用
cd /etc/yum.repos.d/ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/C…... -
centos 8安装nginx
安装gcc组件 yum -y install gcc gcc-c++ autoconf automake make pcre pcre-devel # 添加对gzip的支持 yum install -y zlib zlib-devel #安装 SSL支持 yum -y install pcre pcre-devel zlib zlib-devel openssl openssl-devel ngi…... -
Repository AppStream is listed more than once in the configuration
root@centos8 ~ yum install gcc Repository AppStream is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository PowerTools is listed more t…... -
centos8安装gcc
此教程在无法在线安装gcc或者无gcc旧版本无法安装gcc的解决方法 下载gcc wget https://gcc.gnu.org/pub/gcc/releases/gcc-10.2.0/gcc-10.2.0.tar.gz 进入目录 tar -zxf gcc-10.2.0.tar.gz cd gcc-10.2.0 cd gcc-10.2.0<br /> 安装gcc依赖包 ./cont…... -
centos8换源教程
#切换到源的目录 cd /etc/yum.repos.d/ #修改所有centos所有文件信息 sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.cen…... -
centos8 yum安装软件出现 Failed to set locale, defaulting to C CentOS-8 – AppStream
解决方案:替换源CentOS-AppStream.repo CentOS-Base.repo CentOS-Extras.repo 文件 国内机器替换文件如下 ,国外机器将cenots8服务器上的mirrors.aliyun.com 替换成 vault.centos.org 即可 # CentOS-AppStream.repo # # The mirror system uses the con…... -
Centos8安装LAMP
yum -y install httpd mariadb-server mariadb php php-mysql php-gd php-mbstring iptables -F #关闭防火墙 systemctl start httpd #开机apache systemctl enable httpd #启动apache vim /etc/httpd/conf/httpd.conf 更改Serve…... -
Centos8查看包的信息
查询软件包是否安装 rpm -q 包名 例如: rpm -q httpd 查询软件包的详细信息 yum info 包名 rpm -qi 包名 例: rpm -qi -php 简单理解为变量拼接 which mysql rpm -qf `which mysql`...