Linux系統調整參數

來源:互聯網
上載者:User


Linux系統調整參數 修改系統核心參數修改/etc/sysctl.conf檔案,增加下面行到這個檔案最後,系統重起後生效,或者使用/sbin/sysctl –p生效。kernel.sem = 250        32000   100     128net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144kernel.core_uses_pid = 0【說明】  www.2cto.com  sem: 表示設定的訊號量,有4個值(semmsl,semmns,semopm,semmni)。net.core.rmem_default:預設接收buffer大小。net.core.rmem_max:接收buffer最大值。net.core.wmem_default:預設發送buffer大小。net.core.wmem_max:發送buffer最大值。kernel.core_uses_pid:產生的core檔案名稱是否加進程id尾碼。可以使用/sbin/sysctl –a|grep shmmni來檢查重新啟動後的參數符合要求。 修改使用者限制/etc/security/limits.conf#允許使用者開啟檔案最大數* - nofile 65535#允許使用者建立進程最大數* - nproc 65535 pam中加入配置使生效/etc/pam.d/login增加一行配置:session    required     pam_limits.so   www.2cto.com  關閉防火牆通過setup圖形介面配置,關閉防火牆。 關閉SELinux修改設定檔/etc/sysconfig/selinux ,將SELINUX設定為disable, 重啟機器使之生效。 檢查IP配置預設是主機名稱對應127.0.0.1地址,需要加上一條網卡IP地址和主機名稱對應關係127.0.0.1       apptest localhost.localdomain localhost    把這裡的主機名稱刪除::1             localhost6.localdomain6 localhost6  作者 lotus302

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.