首页 > 其他分享 >解决GIT [ fatal: Out of memory? mmap failed: No such device ]

解决GIT [ fatal: Out of memory? mmap failed: No such device ]

时间:2022-09-28 15:12:01浏览次数:57  
标签:GIT git No -- mmap nginx api home root

 1 # git操作不想每次都输密码,出现报错
 2 [root@api ~]# sudo -u nginx git config --global credential.helper store
 3 error: could not lock config file /home/nginx/.gitconfig: No such file or directory
 4 [root@api ~]# mkdir /home/nginx
 5 [root@api ~]# chown nginx.nginx /home/nginx
 6 [root@api ~]# sudo -u nginx git config --global credential.helper store
 7 fatal: Out of memory? mmap failed: No such device
 8 
 9 # 一通百度、验证之后,发现很多方法都无效;最后尝试升级解决
10 [root@api ~]# git version
11 git version 1.8.3.1
12 [root@api ~]# sudo -u nginx git -C /home/www/web.main pull
13 Unknown option: -C
14 usage: git [--version] [--help] [-c name=value]
15            [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
16            [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
17            [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
18            <command> [<args>]
19 
20 # 升级git
21 [root@api ~]# wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
22 [root@api ~]# rpm -ivh wandisco-git-release-7-2.noarch.rpm
23 [root@api ~]# yum remove -y git
24 [root@api ~]# yum install -y git
25 [root@api ~]# git --version
26 git version 2.31.1
27 
28 # 验证免密
29 [root@api ~]# sudo -u nginx git -C /home/www/server.api pull
30 Username for 'http://gitea.gzxxxxwl.com': xxxx
31 Password for 'http://[email protected]': 
32 Already up to date.
33 [root@api ~]# sudo -u nginx git -C /home/www/server.api pull
34 Username for 'http://gitea.gzxxxxwl.com': ^C
35 [root@api ~]# sudo -u nginx git config --global credential.helper store
36 [root@api ~]# sudo -u nginx git -C /home/www/server.api pull
37 Username for 'http://gitea.gzxxxxwl.com': xxxx
38 Password for 'http://[email protected]': 
39 Already up to date.
40 [root@api ~]# sudo -u nginx git -C /home/www/server.api pull
41 Already up to date.
42 [root@api ~]#

 

标签:GIT,git,No,--,mmap,nginx,api,home,root
From: https://www.cnblogs.com/chanAndy/p/16738117.html

相关文章

  • A Unified View on Graph Neural Networks as Graph Signal Denoising
    目录概符号说明FeaturetransformationandaggregationGCNGATPPNPGraphSignalDenoisingGCNPPNPGATUGNN代码MaY.,LiuX.,ZhaoT.,LiuY.,TangJ.andShahN.Au......
  • P2254 [NOI2005] 瑰丽华尔兹
    P2254[NOI2005]瑰丽华尔兹设f[i][x][y]表示在第i个时段,钢琴在这个时段停止在(x,y)时的最大滑动激励转移:dir=1时f[i][x][y]=max{f[i-1][x+k][y]+k其中0<=k<=ed-st+......
  • [Typescript] Tips: Use 'in' operator to transform a union to another union(watch
    WewanttoconvertexporttypeEntity=|{type:"user"}|{type:"post"}|{type:"comment"}to typeEntityWithId=|{type:"user",userId:string......
  • 用 nodejs 搭建脚手架
    1前言1.1像我们熟悉的vue-cli,taro-cli等脚手架,只需要输入简单的命令taroinitproject,即可快速帮我们生成一个初始项目。在日常开发中,有一个脚手架工具可以用来提高工......
  • 深度阐述Nodejs模块机制
    我们都知道Nodejs遵循的是CommonJS规范,当我们require('moduleA')时,模块是怎么通过名字或者路径获取到模块的呢?首先要聊一下模块引用、模块定义、模块标识三个概念。1Comm......
  • 深度阐述Nodejs模块机制
    我们都知道Nodejs遵循的是CommonJS规范,当我们require('moduleA')时,模块是怎么通过名字或者路径获取到模块的呢?首先要聊一下模块引用、模块定义、模块标识三个概念。1Commo......
  • git命令
    git代码还原开发同事相互协作,共同开发,合并代码后出现冲突,解决冲突,但是解决了几个版本以后还是冲突,并且出现代码缺失问题。开发同事提出还原版本到合并之前。趁机整理下gi......
  • tornado 执行 asyncio 异步报错 run_forever assert self._self_reading_future is N
    报错信息:python38\lib\asyncio\windows_events.py",line314run_forever assertself._self_reading_futureisNone解决如下:需要引入nest_asyncio,代码如下:importnest_......
  • 用 nodejs 搭建脚手架
    1前言1.1像我们熟悉的vue-cli,taro-cli等脚手架,只需要输入简单的命令taroinitproject,即可快速帮我们生成一个初始项目。在日常开发中,有一个脚手架工具可以用来提高......
  • AttributeError: module 'urllib' has no attribute 'parse'
    python路由解码,代码如下:importurlliburllib.parse.unquote(string)报错AttributeError:module'urllib'hasnoattribute'parse'不解。查得python3需要导入f......