Ubuntu NTFS 硬盘无法写入
ngxtop 报错
[root@**** ~]# ngxtop Traceback (most recent call last): File "/usr/local/bin/ngxtop", line 7, in from ngxtop.ngxtop import main File "/usr/local/lib/python3.6/site-packages/ngxtop/ngxtop.py", line 77, in from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern ModuleNotFoundError: No module named 'config_parser'
Centos 8 时间
CentOS8.0中默认不再支持ntp软件包,时间同步将由chrony来实现,像我这种习惯了ntp同步时间的,一时难以去适应chrony。
本文将通过wlnmp提供的源,来安装ntp服务
添加wlnmp源
安 …
more ...决WordPress修改固定链接后Nginx报404
nginx.conf 里添加如下内容:[icon name="wpforms" class="" unprefixed_class=""]
location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }more ...
CentOS8使用阿里yum源
由于CentOS 8主要使用AppStream, BaseOS, Extras三个仓库,所以在这里主要配置上面三个仓库对应的配置文件,这里的三个仓库可以理解为同一个软件源中保存了 …
more ...Centos date 设置自定义时间
(1)安装ntpdate工具
# yum -y install ntp ntpdate
(2)设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
(3)将系统时间写入硬件时间
# hwclock --systohc
(4)强制系统时间写 …
more ...Squid 状态查看
squidclient -p 80 mgr:info #取得squid运行状态信息: squidclient -p 80 mgr:mem #取得squid内存使用情况: squidclient -p 80 mgr:objects #取得squid已经缓存的列表,使用时要小心,可能会造成squid崩溃: squidclient -p 80 mgr:diskd #取得squid的磁盘使用情况: squidclient -p 80 -m PURGE http …more ...
在使用Zabbix 时出现,图表中的文字无法正常显示
在使用Zabbix 时出现,图表中的文字无法正常显示。
在查阅后,得出需要检查的地方有两个:
/usr/share/zabbix/fonts/ 这个地方时存放zabbix前台显示的字体文件的,文件以 …
pip 安装库时设置代理服务器
设置代理
一次性
pip install --proxy="user:password@server:port" yourpackage
指定安装的源
pip install mysqlclient -i http://http://pypi.douban.com/simple/ --trusted-host pypi.douban.commore ...
修改 WSL Ubuntu 18.04 默认源为阿里云镜像
Win10 Windows Store 中下载的 WSL Ubuntu 18.04 默认的源 apt install 下载速度异常缓慢,想替换成国内阿里云的镜像源。
确认默认源
首先查看默认的 …
Centos7 安装第三方源
启用安装
yum install epel-release
安装相关的源
rpm -Uvh xxxx.rpm
Centos7 安装最新版本的mariadb
参考地址:https://downloads.mariadb.org/mariadb/repositories/#mirror=shanghai-university
1. 选择操作系统centos7
2.创建repo文件
more ...输入内容;# MariaDB 10.3 CentOS repository list - created 2018-06-05 06:27 UTC# http://downloads.mariadb.org/mariadb/repositories/[mariadb]name = MariaDBbaseurl = http …
Centos7 firewall
添加开放8080端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent
(--permanent永久生效,没有此参数重启后失效)
重新载入配置
firewall-cmd …
more ...HP DL360E GEN8 centos raid 驱动
wordpress 升级插件失败
- 编辑wp-config.php
- 在文件末尾插入下面代码
define("FS_METHOD", "direct"); define("FS_CHMOD_DIR", 0777); define("FS_CHMOD_FILE …more ...