Code Monkey home page Code Monkey logo

ddup's People

Contributors

gosaturn avatar

Watchers

 avatar  avatar

ddup's Issues

git忽略.pyc

在Git工作区的根目录下创建.gitignore文件,把要忽略的文件名填进去,Git就会自动忽略这些文件。
比如:

vi .gitignore

*.pyc

有多个git账号,提交时怎么指定账号

# 查看当前配置信息
git config --list  
# 强制替换当前邮箱&用户名
git config --global --replace-all user.email "要替换成该邮箱"
git config --global --replace-all user.name "要替换成该用户名"

免密码登陆

from 主机A to 主机B
主机A: ssh-copy-id xx@xxx(B的账号&机器IP)
主机B: vi ~/.ssh/authorized_keys 文件中会生成A的认证信息

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABA.....8t25AD /Users/xxx/.ssh/id_rsa

nginx配置——client_max_size

上传图片时,超过1m的图片,nginx返回413错误。

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.9.10</center>
</body>
</html>

看了下nginx日志,

2017/06/22 21:59:37 [error] 172678#172678: *432605 client intended to send too large body: 3011529 bytes, client: 10.3.23.40, server: gosaturn.com, request: "POST /***/tools/upload_picture/?type=ueditor&pgc_watermark=1&action=uploadimage&encode=utf-8 HTTP/1.1", host: "gosaturn.com"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.