全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2009|回复: 25
打印 上一主题 下一主题

甲骨文 新加坡 大佬们就别说删了重建了

[复制链接]
跳转到指定楼层
1#
发表于 2021-12-11 14:00:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 lKKl 于 2021-12-11 14:21 编辑

大佬们救命啊,甲骨文新家披Ubuntu-20.04之前是执行sudo -i 就内存cpu占用百分之百,没办法开通root登录。
经过两天的研究废了九牛二虎之力通过Cloud Shell手动修改/etc/ssh/sshd_config文件实现了root登录
但是现在用普通用户能正常登录,不过执行sudo -i 就内存cpu占用百分之百。
root用户可以登录成功,但是登录成功就立马内存占用100百分之百。

找不到问题在哪啊,望各位给指条明路。


新加坡貌似又放水了。删掉重建成功了!!!!!!
2#
发表于 2021-12-11 14:01:59 | 只看该作者
没遇到过你这样的情况
3#
发表于 2021-12-11 14:02:30 | 只看该作者
24G内存也能100%?
4#
发表于 2021-12-11 14:02:31 | 只看该作者
reboot一下试试
5#
 楼主| 发表于 2021-12-11 14:03:30 | 只看该作者

软重启 硬重启都试过 问题依旧
6#
发表于 2021-12-11 14:04:15 | 只看该作者
  1. man sudo

  2. -i, --login
  3.                  Run the shell specified by the target user's password database entry as a login shell.  This means that lo‐
  4.                  gin-specific resource files such as .profile, .bash_profile or .login will be read by the shell.  If a com‐
  5.                  mand is specified, it is passed to the shell for execution via the shell's -c option.  If no command is spec‐
  6.                  ified, an interactive shell is executed.  sudo attempts to change to that user's home directory before run‐
  7.                  ning the shell.  The command is run with an environment similar to the one a user would receive at log in.
  8.                  Note that most shells behave differently when a command is specified as compared to an interactive session;
  9.                  consult the shell's manual for details.  The Command environment section in the sudoers(5) manual documents
  10.                  how the -i option affects the environment in which a command is run when the sudoers policy is in use.
复制代码


-i直接调用.bash_profile文件,可能读取阻塞啦?

如果要切换root 直接sudo su root不就好了

点评

su root环境变量不一定完全切换,应该用su -  发表于 2021-12-11 14:09
7#
 楼主| 发表于 2021-12-11 14:04:48 | 只看该作者
kanro 发表于 2021-12-11 14:02
24G内存也能100%?

肯定是哪里有问题,只要切换到root权限立马百分之百
8#
发表于 2021-12-11 14:04:51 | 只看该作者
现在不是能开arm了吗,赶紧删了再开一个啊
9#
发表于 2021-12-11 14:06:04 来自手机 | 只看该作者
我觉得还是删鸡重建吧。。。。
10#
 楼主| 发表于 2021-12-11 14:06:09 | 只看该作者
colla 发表于 2021-12-11 14:04
现在不是能开arm了吗,赶紧删了再开一个啊

目前已经新开不了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-30 13:41 , Processed in 0.095446 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表