欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ubuntu sudo報(bào)錯(cuò)command not found的解決方法

  發(fā)布時(shí)間:2015-02-04 15:00:46   作者:佚名   我要評(píng)論
在使用sudo的時(shí)候出現(xiàn)sudo:source:command not found錯(cuò)誤提示,下面為大家介紹下Ubuntu系統(tǒng)中報(bào)錯(cuò)sudo:source:command not found的解決方法

  Ubuntu系統(tǒng)操作中,在使用sudo的時(shí)候出現(xiàn)sudo:source:command not found錯(cuò)誤提示,遇到這種問(wèn)題要如何處理呢?下面小編就給大家介紹下Ubuntu系統(tǒng)中報(bào)錯(cuò)sudo:source:command not found的解決方法。

  Ubuntu Server上執(zhí)行以下命令,可以看到默認(rèn)打開(kāi)的文件數(shù)限制為1024個(gè)。

  $ ulimit -n

  1024

  編輯/etc/profile配置文件,在最后添加一行:

  ulimit -SHn 65535

  要讓配置生效:

  $ sudo source /etc/profile

  sudo: source: command not found

  我們直接執(zhí)行ulimit -SHn 65535命令又會(huì)怎么樣呢?

  $ ulimit -SHn 65535

  -bash: ulimit: open files: cannot modify limit: Operation not permitted

  $ sudo ulimit -SHn 65535

  sudo: ulimit: command not found

  普通用戶(hù)獲得root權(quán)限后反而提示找不到命令了,該如何解決這個(gè)問(wèn)題呢?

  $ sudo -s

  # source /etc/profile

  再次執(zhí)行ulimit,可以看到打開(kāi)文件的限制數(shù)已改為65535了。

  # ulimit -n

  65535

  上面就是Ubuntu解決sudo:source:command not found錯(cuò)誤的方法介紹了,如果你碰到這個(gè)問(wèn)題,可是嘗試使用本文介紹的方法進(jìn)行處理,希望對(duì)你有所幫助。

相關(guān)文章

最新評(píng)論