Oracle Cloud甲骨文云初始配置 作者: Hogwarts 发布于: 2022-03-01 更新于: 2022-10-11 分类: 默认分类 甲骨文默认系统无论centos系还是Ubuntu系都需要稍作调整。 系统稍有讲究,开出的系统内存是不一样的,水平低,不晓得原因。经测试如下 Centos8 803M , Centos Stream8 799.38M,Oracle Linux8 600M或829Mi,具体多少看运气吧; Centos7和Ubuntu18、20正常。 20221010PS:Centos8 操作系统镜像启用了内核转储,会永久占用380MiB保留内存供内核崩溃转储使用。所以开出800M左右应该是正常的吧。 参考:[甲骨文新开的机子缩水了](https://hostloc.com/thread-1006782-1-1.html "甲骨文新开的机子缩水了") #一、登录用户名 Centos系是opc,Ubuntu系统是ubuntu。 #二、切换到root角色 sudo -i #三、CentOS系统 yum update -y ##3.1 删除多余附件 systemctl stop oracle-cloud-agent systemctl disable oracle-cloud-agent systemctl stop oracle-cloud-agent-updater systemctl disable oracle-cloud-agent-updater ##3.2 停止firewall并禁止开机启动 systemctl stop firewalld.service systemctl disable firewalld.service 20221011ps 3.3 ##3.3 osms-agent占用CPU资源 yum remove osms-agent yum remove oracle-cloud-agent reboot #四、Ubuntu系统 apt update && apt upgrade -y ##4.1 开放所有端口 iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F ##4.2 关闭默认Iptable规则 apt-get purge netfilter-persistent reboot 或强制删除 rm -rf /etc/iptables && reboot #五、建议安装Ubuntu20然后DD成Debian11 需修改password为你的密码 ##5.1 秋水逸冰修改脚本 wget -qO DebianNET.sh qiu.sh/dd && bash DebianNET.sh -d 11 -v 64 -a -p password 可能出现的错误 [Debian] [bullseye] [amd64] Downloading... Error, Not found interfaces config. 本人是在萌咖的脚本基础上用Debian反复DD的,没有出现上述的错误。如报错就用萌咖的脚本吧。 ##5.2 萌咖的脚本 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -p password #20221010PS:六、尝试安装Centos7,并升级到 Rocky Linux(已测试,行不通) 此脚本会将现有的 CentOS 8 系统转换为 Rocky Linux 8。Centos7不行。 参考官方地址:`https://docs.rockylinux.org/guides/migrate2rocky/` ##6.1 下载官方一键脚本 curl https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh -o migrate2rocky.sh ##6.2 给予权限并执行 chmod u+x migrate2rocky.sh ./migrate2rocky.sh -r ##6.3 存在的问题 ###6.3.1 问题一 理论基础未测试。报错: ./migrate2rocky.sh: line 133: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory ./migrate2rocky.sh: line 133: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ./migrate2rocky.sh: line 274: dnf: command not found Errors found in dnf/rpm database. Please correct before running migrate2rocky. An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage. A log of this installation can be found at /var/log/migrate2rocky.log Centos7到20240630周期终止,目前暂可继续使用。不喜欢3系的内核,可升级到最新或稳定版本内核。 ###6.3.2 问题二 迁移Alma Linux也以失败而告终(或许需要等待较长时间)。未进VNC查看问题在哪(不死心,待有空尝试。)。 Centos7迁移参考WIKI:`https://wiki.almalinux.org/elevate/ELevate-quickstart-guide.html` #七、抄录地址 因每次开机都要登录虚拟号的网站学习,就抄录到自己博客上来了。 [2021年注册永久免费甲骨文云Oracle Cloud并创建免费实例最全攻略](https://xunihao.net/867.html#Oracle-CloudAWS "2021年注册永久免费甲骨文云Oracle Cloud并创建免费实例最全攻略") 标签: oracle, DD