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

具体如下图:
Linux安装weblogic报:Checking swap space: must be greater than 512 MB. Actual 0 MB Failed_第1张图片

你可能感兴趣的:(Linux)