个人学习笔记

个人学习笔记

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

执行npm ,再不用sudo

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}或者在install后面加上–no-optional

mysql 数据库中根据当前系统时间,取前后几秒 几分钟 几小时 几天

取当前时间:select current_timestamp;输出:2016-06-16 16:12:52select now(); 输出:2016-06-16 16:12:52取当前时间的前一分钟:select SUBDATE(now(),interval 60 second);输出:2016-06-16 16:11:52取当前时间的下一分钟:select ADDDATE(now(),interval 60 second);输出:2016-06-16 16:13:52通过变化上面的单

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

[转]谷歌验证 (Google Authenticator) PHP版

开启Google的登陆二步验证(即Google Authenticator服务)后用户登陆时需要输入额外由手机客户端生成的一次性密码。开启Google的登陆二步验证(即Google Authenticator服务)后用户登陆时需要输入额外由手机客户端生成的一次性密码。实现Google Authenticator功能需要服务器端和客户端的支持。服务器端负责密钥的生成、验证一次性密码是否正确。客户端记录密钥后生成一次性密码。算法类保存为GoogleAuthenticator.php 的文件怎么接在网

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

服务器运营常见问题

接受長字串POST出現500 erroropen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied) cd /var/lib chmod -R 775 nginxcentOS + nginx 存取發生 403 (非資料夾權限問題˙)情況描述:資料夾權限沒有問題,但卻出現403,檔案複

linux crontab 实现每秒执行

llinux crontab 命令,最小的执行时间是一分钟。如需要在小于一分钟内重复执行,可以有两个方法实现。编写shell脚本实现crontab.sh#!/bin/bash step=2 #间隔的秒数,不能大于60 for (( i = 0; i < 60; i=(i+step) )); do     $(php '

nginx: [emerg] open() "/home/www/log/error.log" failed 问题瞎想

不知道有人在这个问题上遇到过坎没,反正是困扰我很久了原因是这样的,外面云平台的 VPS的centos里面没有问题,自己安装的系统呢,更改了www和日志目录后,nginx或者apache都无法启动,会报 日志目录没有读写权限,而测试给了777,也不行,偶然机会,在v2ex询问高人之下,发现如下方法可以解决:关闭 selinux ( setenforce 0 )(临时解决方案)/etc/sysconfig/selinux 中修改 第一行生效的部分为“SELINUX=disabled”(永久,生效后重

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

Powered By Z-BlogPHP 1.5.2 Zero

转载文章请注明出处并附链接。 京ICP备15060053号-1