Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu set Swap Space Tutorial     - MySQL 5.6 use GTIDs build the master database (Database)

- Oracle 11g DataGuard service to start automatically (Database)

- Oracle database physical file backup / restore (Database)

- Oracle LONG RAW BLOB CLOB type of presentation (Database)

- RMAN parameters of ARCHIVELOG DELETION (Database)

- Easy to get hidden administrator account (Linux)

- RegExp object implements regular match --JavaScript (Programming)

- Guide: Trickle restrict application bandwidth usage (Linux)

- Linux kernel netpoll framework netconsole (Linux)

- View and modify Linux machine name (Linux)

- Java is simple to read and write HDFS Demo (Programming)

- The Java ThreadLocal (Programming)

- Gentoo: !!! existing preserved libs problem (Linux)

- Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)

- 10 Nginx safety tips (Linux)

- MultiWriter: while the ISO image concurrent writes 20 USB Startup Disk (Linux)

- Build Golang development environment configuration on Ubuntu 14.04 (Linux)

- iOS9 new feature - stacked view UIStackView (Programming)

- Linux user login ban (Linux)

- Eclipse-4.4 crash problem solving under Debian-7.6 (Linux)

 
         
  Ubuntu set Swap Space Tutorial
     
  Add Date : 2016-05-11      
         
         
         
  If you are currently using Ubuntu system, whether it is a virtual machine or a physical machine, there is no or insufficient swap swap Swap partition space, you can set Swap swap space.

Provided herein is a simple way to set the swap space.

Why set up swap space after the operating system is installed?

1, and article "Windows 8.1 installed Ubuntu 14.04 dual system reference tutorials and dual hard drives Considerations" in this article are directly related http://www.linuxidc.com/Linux/2015-08/122140.htm. In this tutorial reference, I did not set up a swap partition when installing Ubuntu.

2, the swap partition is not necessary, but some software is mandatory for the system containing the swap partition. So after not set the swap partition Ubuntu system installation is successful, it needs to be allocated swap partition is entirely for its existence.

Ready to work

The core of this method is to create a swap file partition, and then let the system mount the swap file.

Step 1 Check swap

In the end run "free -m" command to view the current system swap space information:

Swap total value is 0, indicating that the current system is not set up swap space. Mem refers to a computer memory size, as shown in Fig. 2G.

Step 2 Create and Mount

Because of the following series of commands to be executed with root privileges, so let's get administrator privileges. Execute "sudo -i" command in a terminal, enter the user password obtained.

1. Create a swap directory in the root directory (folder): "mkdir / swap"

2, into the swap space has been created directory: "cd / swap"

3, specify a size of 1G called "swap" swap file (you can customize the file name): "dd if = dev / zero of = swap bs = 1M count = 1k". Bs * count by the size of the space is calculated.

4, create a swap file: "mkswap swap"

5, mounting swap partition: "swapon swap"

6, view swap information: "free -m"

7, uninstall command swap partition: "swapoff swap"

8, you can see called "swap" swap file we created in the specified directory.

Thus, the swap partition created.
     
         
         
         
  More:      
 
- Comparison of sorting algorithms (Programming)
- Oracle 10g in the unique and index problems (Database)
- CentOS 6.6 installation certification system based on the ftp service (Server)
- JDK installation under CentOS (Linux)
- Java threads in the life cycle (Programming)
- CentOS cross compiler core Raspberry Pi 2 (Linux)
- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)
- Tomcat session clustering and server session (Server)
- How do I switch from NetworkManager to systemd-network on Linux (Linux)
- Let Mac OS X dedicated high-speed mobile hard disk can also be read in Linux (Linux)
- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)
- The first IOS Objective-C program (Programming)
- Vi syntax highlighting settings (Linux)
- Red Hat Enterprise Linux 6.4 Configuring VNC Remote Desktop login access (Linux)
- Linux Systems Getting Started Learning: Configuration PCI passthrough on a virtual machine (Linux)
- Linux OOM killer mechanism (Linux)
- Java MVC CRUD examples (Programming)
- Change the kernel boot sequence after CentOS 7 kernel upgrade (Linux)
- Installation under Linux to deploy Java (Linux)
- 14.04.3 Ubuntu configuration and successfully compiled source code Android 6.0 r1 (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.