Centos7关闭firewall防火墙,启用iptables防火墙
从Centos7开始默认使用firewall防火墙了 换成iptables防火墙,操作步骤如下: 关闭firewalld防火墙,关闭开机自启
1 2 |
systemctl stop firewalld.service systemctl disable firewalld.service |
安装iptables防火墙,设置开机自启 [cray … 阅读全文
从Centos7开始默认使用firewall防火墙了 换成iptables防火墙,操作步骤如下: 关闭firewalld防火墙,关闭开机自启
1 2 |
systemctl stop firewalld.service systemctl disable firewalld.service |
安装iptables防火墙,设置开机自启 [cray … 阅读全文
效果图 佛祖地址:https://down.whsir.com/downloads/fz.txt github地址:https://github.com/abcfy2/motd ~微信打赏~ 赏
使用yum时一直提示下面的信息
1 2 3 4 5 6 7 8 9 |
Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Cleaning repos: base extras updates Cleaning up Everything Cleaning up list of fastest mirrors |
原来系统是CentOS6.8,yum update后开始一直报这个了,后来经过查找发现,系统已经升级到了Centos6.9,升级后在/etc/yum.repos. … 阅读全文
nginx禁止指定目录运行php,只需要在server配置段中增加个location规则就可以了。 1、禁止某一个目录执行php
1 2 3 4 |
location ~* ^/download/.*\.(php|php5)$ { deny all; } |
2、禁止多个目录执行php [crayon-6622fddb71 … 阅读全文
当前使用环境Centos6.9 mydumper是针对mysql数据库备份的一个轻量级第三方的开源工具,备份方式为逻辑备份,支持多线程,备份速度要比mysqldump快的多。 安装所需依赖 [crayon-6622fddb7203e0465242 … 阅读全文
同步所用到的两个程序 cwRsyncClient和cwRsyncServer cwRsyncServer下载地址:https://down.whsir.com/downloads/cwRsyncServer_4.0.5_Installe.zip cwRsync … 阅读全文
linux下在终端环境下可以使用free命令看到系统实际使用内存的情况,一般用free -m方式查看内存占用。 间隔显示free 可以使用-s选项,跟上间隔的秒数,例如每3秒统计一次内存使用率,free -ms 3 以MB单位显示内存,free -h 参数解释 … 阅读全文
rpmdb: Thread/process 11197/140701458409216 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->fai … 阅读全文
ntpdate只能用udp协议来同步时间,rdate支持用tcp协议或udp协议同步时间。 使用ntpdate更新时间 yum -y install ntpdate /usr/sbin/ntpdate ntp1.aliyun.com 使用rdate更新时间 y … 阅读全文
当前系统Centos6.9,已经安装好lnmp(php5.6 mysql5.1)军哥环境,在此基础上并存一个php5.2的版本。 PS:php5.2.14默认不支持php-fpm的,需要打上fpm补丁 安装epel源 [crayon-6622fd … 阅读全文