28
2019
07
ER-X如何设置支持ipv6上网?
这是我的ipv6部分以及相应防火墙的设置,er-x sfp,应该和er-x差不多,eth0是wan口,eth1-eth4为lan口,switch0,供参考:configure#Configure the PPPoE for IPv6(eth0):set interfaces ethernet eth0 pppoe 0 ipv6 enableset interfaces ethernet eth0 pppoe 0 ipv6 address autoconfset interfaces ethern
作者:colordog | 分类:运维 | 浏览:225 | 评论:0
27
2018
08
Centos 7.x 安装 Swoole 4.0.x
安装依赖包openssl, openssl-devel, 安装编译程序gcc, gcc-c++安装http2依赖 nghttp2https://github.com/nghttp2/nghttp2/releases下载后解压缩并编译 tar zxvf nghttp2-1.32.1.tar.gz
cd nghttp2-1.32.1
./configure
make
make install安装swoolepecl install
作者:colordog | 分类:运维 | 浏览:681 | 评论:0
29
2018
04
centos+nginx使用acme.sh安装免费Let’s Encrypt通配符证书
一、安装acme.shcurl https://get.acme.sh | sh二、检查是否安装好#直接运行
acme.sh
#如报错请运行如下
source ~/.bashrc三、2种验证方式1、DNS方式:获取阿里云的ID和Secrethttps://ak-console.aliyun.com/#/accesskey# 替换成从阿里云后台获取的密钥 &nb
作者:colordog | 分类:运维 | 浏览:1193 | 评论:0
02
2018
04
服务器运营常见问题
接受長字串POST出現500 erroropen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied)
cd /var/lib
chmod -R 775 nginxcentOS + nginx 存取發生 403 (非資料夾權限問題˙)情況描述:資料夾權限沒有問題,但卻出現403,檔案複
作者:colordog | 分类:运维 | 浏览:988 | 评论:0
09
2017
09
linux crontab 实现每秒执行
llinux crontab 命令,最小的执行时间是一分钟。如需要在小于一分钟内重复执行,可以有两个方法实现。编写shell脚本实现crontab.sh#!/bin/bash
step=2 #间隔的秒数,不能大于60
for (( i = 0; i < 60; i=(i+step) )); do
$(php '
作者:colordog | 分类:运维 | 浏览:1505 | 评论:0
24
2017
03
nginx: [emerg] open() "/home/www/log/error.log" failed 问题瞎想
不知道有人在这个问题上遇到过坎没,反正是困扰我很久了原因是这样的,外面云平台的 VPS的centos里面没有问题,自己安装的系统呢,更改了www和日志目录后,nginx或者apache都无法启动,会报 日志目录没有读写权限,而测试给了777,也不行,偶然机会,在v2ex询问高人之下,发现如下方法可以解决:关闭 selinux ( setenforce 0 )(临时解决方案)/etc/sysconfig/selinux 中修改 第一行生效的部分为“SELINUX=disabled”(永久,生效后重
作者:colordog | 分类:运维 | 浏览:2505 | 评论:0
22
2017
03
nginx log 错误502 upstream sent too big header while reading response header from upstream
cookies的值超出了范围我是说看看了一下日志错误502 upstream sent too big header while reading response header from upstream sudo gedit /var/log/nginx/error.log查看错误日志upstream sent too big header while reading response header&nb
作者:colordog | 分类:运维 | 浏览:1829 | 评论:0
20
2016
12
centos7中crontab(计时器)用法详解
关于crontab: crontab命令常见于Unix和类Unix的操作系统之中,用于设置周期性被执行的指令。该命令从标准输入设备读取指令,并将其存放于“crontab”文件中,以供之后读取和执行。该词来源于希腊语 chronos(χρ?νο?),原意是时间。 通常,crontab储存的指令被守护进程激活, crond常常在后台运行,每一分钟检查是否有预定的作业需要执行。这类作业一般称为cron jobs。 安装crontab:[root@CentOS ~]#
作者:colordog | 分类:运维 | 浏览:2454 | 评论:0
18
2016
12
CentOS7 通过yum 安装mysql5.7
作者:colordog | 分类:运维 | 浏览:1785 | 评论:0
21
2016
10
为pure-ftpd添加本地验证
centos 安装好pure-ftpd之后,需要设定虚拟用户
yum -y install pure-ftpd
修改配置文件启用本地校验
添加用户
pure-pw useradd jo
作者:colordog | 分类:运维 | 浏览:1701 | 评论:0