I don't know how much swap space is allocated, so I will assign one randomly. When I use it, for example, installing Oracle10g will require a large swap space. If I find that the swap space is not enough, how should I increase the size of the swap space?
The following operations must be performed under the root user. First, create a partition first, using the dd command such as
dd if=/dev/zero of=/home /swap bs=1024 count=512000
This will create a partition file like /home/swap. The size of the file is 512,000 blocks. In general, 1 block is 1K, so the space here is 512M. Then turn this partition into a swap partition.
/sbin/mkswap /home/swap
Then use this swap partition. Make it active.
/sbin/swapon /home/swap
Now use the free -m command to check the memory and swap partition size, and found that 512M space has been added. However, when the computer is restarted, it is found that the swap is still as large as the original, the new swap does not start automatically, but also needs to be manually started. Then we need to modify the /etc/fstab file, add the following line
/home/swap swap swap defaults 0 0
You will find that your swap space is also increased after your machine starts automatically. .
Multiple startup files Adding multiple startup files by saying that compilation will be wrong. But t
For ease of use, we will save the Xshell session. How to transfer the session information saved on
to view the memory usage under the Linux server, you can use the command free -m. Note that this com
How to open telnet function in Linux?
Realize linux and windows file transfer
Understand the basics of Fdisk under Linux
Scp copying between Linux hosts without entering a password
Solutions to common problems in Linux systems
Configuration parameters How to install two Linux systems
How to retrieve the WeChat chat record deleted by Apple phone?
5 solutions for Win7 broadband connection error 711
Windows 10 quietly enters the official version with the installation steps
What should I do if the Win8 network is attacked? Manually binding ARP tips
Win8 system deletes HomeGroupUser$ account method graphic tutorial
Win10 Mobile official version of the upgrade version number is 10.0.010586.107
Use the registry to fix the IP address to prevent others from changing
The protagonist at Microsoft Build 2013 conference
Newcomers need to know the basics of Linux
AutoCad queries point coordinates, distance, area, and an object's quality characteristics.