搜索泥称 发表于 2018-1-11 13:31:53

gitlab 无法查看提交的文件Errno-ENOMEM (Cannot allocate memory

# free -h  
total       used
free   shared    buffers   cached  
Mem:
1.8G       1.7G      63M      43M       9.7M       140M  

-/+ buffers/cache:       1.6G       213M  
Swap:         0B         0B         0B
  
[iyunv@xxxx
~]# mkdir /swapfile  
[iyunv@xxxx
~]# cd /swapfile  
#
sudo dd if=/dev/zero of=swap bs=1024 count=2000000  
2000000+0 records in
  
2000000+0 records out
  
2048000000 bytes (2.0 GB) copied, 39.1198 s, 52.4 MB/s
  
# sudo mkswap -fswap

  
Setting up swapspace version 1,>  
no label, UUID=75b00bde-7aed-48f3-b373-126a2054ad26
  
# sudo swapon swap
  
swapon: /swapfile/swap: insecure permissions 0644, 0600 suggested.
  
# free -h
  
total       used       free   shared    buffers   cached
  
Mem:          1.8G       1.7G      93M      43M       1.2M      23M
  
-/+ buffers/cache:       1.7G       118M
  
Swap:         1.9G         0B       1.9G
  
#
页: [1]
查看完整版本: gitlab 无法查看提交的文件Errno-ENOMEM (Cannot allocate memory