简体   繁体   中英

modify kernel parameters in linux without using sysctl

I have an embedded system. An old linux OS runs on it. When i enter "uname -r" command i get the version information as "3.3.8-3.4".

I want to modify some of network kernel parameters (increase tcp receive buffer size etc.) in /proc/sys. But sysctl command does not exist in this old linux kernel version. Also sysctl.conf does not exist under /etc directory

I tried changing kernel parameter files manually but system does not allow this operation even for super user.

How can i modify kernel parameters in this linux version?

You can use /proc/sys . For example the following command:

echo 1 > /proc/sys/net/ipv4/ip_forward

... is basically the same as

sysctl -w net.ipv4.ip_forward=1

However, you'll need to make sure on your own that parameters will be set on boot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM