Chinaunix首页 | 论坛 | 博客
  • 博客访问: 147818
  • 博文数量: 89
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-29 23:10
文章分类

全部博文(89)

文章存档

2016年(89)

我的朋友

发布时间:2016-03-15 21:44:13

一、准备工作1.1、安装 OpenSSL(方法自行搜索,或者yum install openssl)1.2、准备 pcre 库pere 是为了让 nginx 支持正则表达式。只是准备,并不安装,是为了避免在64位系统中出现错误。wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz//在/usr/local目录下解压tar -zxf pcre-8.301..........【阅读全文】

阅读(611) | 评论(0) | 转发(0)

发布时间:2016-03-15 21:21:42

一.Nginx没有关闭killall -9 nginxps ef|grep nginx,未发现有nginx进程说明已经关闭重启还报错,那么进行下面处理二.其他程序占用地址1.查看80端口占用情况netstat -ntpl2.杀掉占用80端口的进程kill -9 $pid //这个$pid就是端口重启可以成功。转载自:http://www.9958.pw/post/nginx_start_failed.........【阅读全文】

阅读(603) | 评论(0) | 转发(0)

发布时间:2016-03-14 21:07:30

ERRORThe requested URL could not be retrievedWhile trying to retrieve the URL: http://9958.pw/The following error was encountered:Unable to forward this request at this time. This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is.........【阅读全文】

阅读(534) | 评论(0) | 转发(0)

发布时间:2016-03-13 20:58:14

首先我们还是得安装node的第三方用户发送email的依赖module 。npm install nodemailer安装好之后,还有一个问题需要注意,我们应该确保用来发送邮件的邮箱地址是打开只是IMAP 、SMTP功能的,这样才可以发送邮件成功。//发送邮件mail.SMTP = { use_authentication: true, //如果我们使用QQ等邮箱,这个必须写且为tru.........【阅读全文】

阅读(608) | 评论(0) | 转发(0)

发布时间:2016-03-13 15:30:02

循环中的闭包一个常见的错误出现在循环中使用闭包,假设我们需要在每次循环中调用循环序号for(var i = 0; i < 10; i++) { setTimeout(function() { console.log(i); }, 1000);}上面的代码不会输出数字 0 到 9,而是会输出数字 10 十次。当 console.log 被调用的时候,匿名函数保持对外部变量 i 的引.........【阅读全文】

阅读(651) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册