2017年 06月 21日 - Linux下使用sudo执行命令提示command not found

    执行nginx -t 权限不足

    $ nginx -t
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
    

    原因是自己的nginx.conf配置使用的80端口号,系统默认低于1024的端口号,是需要管理员权限的.

    2017年 06月 14日 - DungProxy源码学习(四)

    域名校验

    CheckController.java

    api : /proxyipcenter/checkUrlTask
    param : url
    descriyption : 根据给出的url进行域名校验 # 校验实现
    

    system.domain.test.forward.url

    2017年 06月 10日 - jekyll代码高亮样式重整

    一直对jekylljekyll-clean主题代码高亮不满意,很喜欢monokai的主题. 早晚得走这一遭,今天折腾折腾… 一折腾起来还真要命…

    2017年 06月 09日 - 使用npm安装bower卡顿解决

    安装

    想学这CSDN一样使用js-sequence-diagrams的时候,看教程需要安装 bower以方便下载所需要的依赖文件.遂根据bower简明入门教程的教程进行安装. 安装过程如下:

    $ bower install bramp/js-sequence-diagrams
    -bash: bower: command not found
    

    没有安装bower,使用npm进行安装:

    npm install -g bower
    npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path but we hope you'll help us figure out one.
    

    2017年 06月 08日 - DungProxy源码学习(三)

    API介绍及实现–代理端口检测

    了解代码结构后可以从控制层开始了解http的api了.