Git 出现的问题
来源:互联网 发布:网上开店铺的软件 编辑:程序博客网 时间:2024/05/21 10:53
1.GIT 推送大文件出现bug
fatal: Out of memory, malloc failed (tried to allocate 2768261633 bytes)fatal: sha1 file '<stdout>' write error: Broken pipe KiB/s
这个错误是在我想要推送一个2.5G的一个视频时出现的。
暂定解决办法: (!!!尝试了一下没有任何效果!!!最后还是删除后重新添加的!) 摘录地址:http://www.jb51.net/article/73597.htm
Method 2: Use a File for Additional Swap Space
If you don’t have any additional disks, you can create a file somewhere on your filesystem, and use that file for swap space.
The following dd command example creates a swap file with the name “myswapfile” under/root
directory with a size of 1024MB (1GB).
代码如下:
# dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1024+0 records in 1024+0 records out# ls -l /root/myswapfile -rw-r--r-- 1 root root 1073741824 Aug 14 23:47 /root/myswapfile
Change the permission of the swap file so that only root can access it.
代码如下:
# chmod 600 /root/myswapfile
Make this file as a swap file using mkswap command.
代码如下:
# mkswap /root/myswapfile Setting up swapspace version 1, size = 1073737 kB
Enable the newly created swapfile.
代码如下:
# swapon /root/myswapfile
To make this swap file available as a swap area even after the reboot, add the following line to the /etc/fstab
file.
代码如下:
# cat /etc/fstab /root/myswapfile swap swap defaults 0 0
Verify whether the newly created swap area is available for your use.
代码如下:
# swapon -s Filename Type Size Used Priority /dev/sda2 partition 4192956 0 -1 /root/myswapfile file 1048568 0 -2# free -k total used free shared buffers cached Mem: 3082356 3022364 59992 0 52056 2646472 -/+ buffers/cache: 323836 2758520 Swap: 5241524 0 5241524
Note: In the output of swapon -s command, the Type column will say “file” if the swap space is created from a swap file.
If you don’t want to reboot to verify whether the system takes all the swap space mentioned in the /etc/fstab, you can do the following, which will disable and enable all the swap partition mentioned in the /etc/fstab
代码如下:
# swapoff -a # swapon -a
说实在的我一直不太关心swap的大小,总觉得没啥用处。这一次就让我长记性了——swap还是必要的!
- Git 出现的问题
- git clone 出现的问题
- git init 出现的问题
- 使用git出现的问题
- git使用时出现的问题
- 使用git容易出现的一些问题
- git使用过程中出现的问题
- 解决git push出现的问题
- git同步代码出现的问题
- Git+SourceTree使用时出现的问题
- 使用git中出现的问题
- git 到gitub中出现的问题
- Git push 出现Timeout问题的解决
- git 上传本地文件到git.oschina出现的问题
- 关于Git的使用中出现的问题
- unbutu git pull代码的时候出现的问题
- Git服务器代理上网安装出现问题的几个解决办法。
- linux安装git协议步骤以及可能出现的问题
- 工作笔记——jQuery的事件绑定
- android:TextView
- 机器学习:梯度下降算法
- 浅析Java类和数据结构中常用的方法
- UVA 539
- Git 出现的问题
- Java多线程--初始
- 【多媒体编解码】Openmax IL (二)Android多媒体编解码Component架构
- 关于spring mvc,spring data,spring,MongoDB整合框架的一些思考和常用注解
- 关于EasyUI与富文本编辑器结合使用的问题(kindueditor与uueditor)
- 漏洞挖掘
- 直接通过网页jsp导出Excel文件
- makefile使用函数
- 阿里云服务器部署正式web环境