Linux安装weblogic报:Checking swap space: must be greater than 512 MB. Actual 0 MB Failed

Linux安装weblogic的时候,检查项分区不通过,提示如下(自己记录下问题以备再用):

Launcher log file is /tmp/OraInstall2020-01-08_02-14-44PM/launcher2020-01-08_02-14-44PM.log.
Extracting files......
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2500.004 MHz    Passed
**Checking swap space: must be greater than 512 MB.   Actual 0 MB    Failed <<<<**
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 29089 MB    Passed

Some system prerequisite checks failed.
You must fulfill these requirements before continuing with the installation.

Exiting Oracle Universal Installer.
Log(s) for this session can be found in /tmp/OraInstall2020-01-08_02-14-44PM/launcher2020-01-08_02-14-44PM.log.

问题原因:
你的Linux系统没有Swap交换分区

解决办法:
1、创建交换分区的文件:增加1G大小的交换分区,命令写法如下(count 为想要的块大小)

# dd if=/dev/zero of=/home/swapfile bs=1M count=1024

2、设置交换分区文件

# mkswap /home/swapfile

3、启用交换分区文件

# swapon /home/swapfile

4、开机时自动启用,在文件/etc/fstab文件中以下内容

/home/swapfile swap swap defaults 0 0

具体如下图:
在这里插入图片描述

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值