常开发用配置
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绑定
}
}
复制代码