摘要: E325: ATTENTIONFound a swap file by the name ".nginx.conf.swp" owned by: root dated: Fri Nov 1 18:42:48 2019 file name: /usr/local/nginx/conf/nginx.co 阅读全文
posted @ 2019-11-01 19:45 狄枫 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf:41nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed 这是 阅读全文
posted @ 2019-11-01 19:41 狄枫 阅读(2401) 评论(1) 推荐(0) 编辑
摘要: 第一步: 切换到/usr/local目录,下载软件包 # cd /usr/local # wget http://nginx.org/download/nginx-1.11.5.tar.gz 第二步: 安装nginx,先执行以下命令,安装nginx依赖库,如果缺少依赖库,可能会安装失败,具体可以参考 阅读全文
posted @ 2019-11-01 19:38 狄枫 阅读(1330) 评论(0) 推荐(0) 编辑
摘要: 参考文档https://github.com/nodesource/distributions curl -sL https://rpm.nodesource.com/setup_12.x | bash - yum install -y nodejs 阅读全文
posted @ 2019-11-01 19:34 狄枫 阅读(2823) 评论(0) 推荐(0) 编辑
摘要: function insertSpacesIntoString( s, defVal ) { return s && (function( s ) { return s.length > 4 && (s .replace(/\s/g,'') .replace(/(.{4})/g,'$1 ')) .replace(/(\s*$)/g,'') || s ; }(s... 阅读全文
posted @ 2019-10-19 11:39 狄枫 阅读(151) 评论(0) 推荐(0) 编辑
摘要: nodejs遇到的一些问题 阅读全文
posted @ 2017-05-03 16:39 狄枫 阅读(118) 评论(0) 推荐(0) 编辑
摘要: function touch(event) { var event = event || window.event; switch (event.type) { case "touchstart": console.log(event.touches[0].clientX + "," + event.touches[0].clientY); ... 阅读全文
posted @ 2016-11-10 11:49 狄枫 阅读(312) 评论(0) 推荐(0) 编辑
摘要: var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //heightvar w = window.innerWidth || document.doc... 阅读全文
posted @ 2015-09-05 10:48 狄枫 阅读(770) 评论(0) 推荐(0) 编辑
摘要: JS获取CSS属性 阅读全文
posted @ 2015-08-31 16:03 狄枫 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 一个正则表达式就是由普通字符(例如字符 a 到 z)以及特殊字符(称为元字符)组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。如: JScriptVBScript匹配/^\[ \t]*$/"^\[ \t]*$"匹配... 阅读全文
posted @ 2015-06-30 14:24 狄枫 阅读(119) 评论(0) 推荐(0) 编辑