Linux添加虛擬記憶體解決swap空間不足問題

來源:互聯網
上載者:User

1、查看當前虛擬記憶體
[root@centos rpm]# free -m
             total       used       free     shared    buffers     cached
Mem:          1518        530        987          0         19        406
-/+ buffers/cache:        104       1413
Swap:         2047          0       2047

2、查看當前檔案系統資訊
[root@centos rpm]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             7.9G  2.9G  4.7G  39% /
none                  760M     0  760M   0% /dev/shm
/dev/sda3            1004M  276M  678M  29% /tmp
/dev/sda6             5.0G   44M  4.7G   1% /u01
/dev/sda5             4.0G  3.6G  199M  95% /u02

3、將當前swap空間由2047mb增加到 2274 mb,新增一個227mb 的swap檔案
[root@centos rpm]# dd if=/dev/zero of=/swap_increased bs=1024 count=235000
235000+0 records in
235000+0 records out

4、執行以下命令增加並啟用虛擬記憶體
[root@centos rpm]# mkswap /swap_increased 
Setting up swapspace version 1, size = 240635 kB
[root@centos rpm]# swapon /swap_increased
[root@centos rpm]# free -m
             total       used       free     shared    buffers     cached
Mem:          1518        765        752          0         20        635
-/+ buffers/cache:        108       1409
Swap:         2276          0       2276

5、安裝Oracle Database 11g
xmanager
netca

dbca

轉載請註明出處及原文連結:

http://blog.csdn.net/xiangsir/article/details/8570404

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.