WEB前端常用环境配备

常开发用配置

windows

cygwin64
    [cygwin64]: https://cygwin.com/install.html cygwin64下载
Ruby
    [Ruby]: https://www.ruby-lang.org/zh_cn/
Python
    [Python]: https://www.python.org/
Node
    [Node]: https://nodejs.org/zh-cn/
GoLang
    [GoLang]: https://golang.org/
Redis
    [Redis]: https://redis.io/
Memcached
    [Memcached]: https://memcached.org/
Nginx
    [Nginx]: https://nginx.org/en/
NPM
    [NPM]: https://www.npmjs.com/
复制代码

代码管理

Git 
    [Git]: https://git-scm.com/
GitLab
    [GitLab]: https://gitlab.com/
GitHub
    [GitHub]: https://github.com/
复制代码

开发工具

Atom
    [Atom]: https://atom.io/
VSCode
    [VSCode]: https://code.visualstudio.com/
SubLime Text
    [SubLimeText]: https://www.sublimetext.com/
PhotoShop
    [PhotoShop]: https://www.photoshop.com/
标注切图
    [标你妹]: http://www.biaonimeia.com
    [Cutterman]: http://www.cutterman.cn
    [pxcook]: http://www.fancynode.com.cn/pxcook
复制代码

基础配置

nginx 静态服务器配置
复制代码
    server {
     listen 80;
     server_name your.domain.com;
     #charset utf-8; 编码设置
     #location  /crossdomain.xml {
     #alias /usr/local/nginx-1.0.15/html/crossdomain.xml;
     #rewrite (.*) crossdomain.xml;
     #}

     location / {
          root #your static root Path;
     }

     #rewrite ^/(.*) /static/$1 last;
     rewrite ^/js/(.*) /static/$1 last;
     rewrite ^/style/(.*) /less/$1 last;
     rewrite ^/images/(.*) /less/images/$1 last;
     rewrite ^/demo/(.*) /demo/$1 last;
}
复制代码
Nginx + webApp Proxy
复制代码
    server {
    listen       8081; #监听的端口
    #server_name  xxx.domain.com;
    server_name  127.0.0.1;
    client_max_body_size 1M;
    location = /favicon.ico {
       #rewrite (.*) /static/favicon.ico; #静态文件设置
    }
    location / {
       proxy_read_timeout 2000;
       proxy_pass_header Server;
       proxy_set_header Host $http_host;
       proxy_redirect off;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Scheme $scheme;
       proxy_pass http://127.0.0.1:3000; #代理程序本地IP绑定
    }

}
复制代码

转载于:https://juejin.im/post/5ac2f8acf265da237c69165f

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值