Solve Invalid argument error when running sysctl command

This PS solve the following warning when executing prepare.sh.
sysctl: setting key "net.ipv4.ip_local_port_range": Invalid argument

Change-Id: I393980a9d4445b98dced65639f3004ecf379dddd
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
This commit is contained in:
Zhijiang Hu 2018-01-11 03:46:02 -05:00
parent 7bd83aa4aa
commit b568ade274
1 changed files with 1 additions and 1 deletions

View File

@ -54,5 +54,5 @@ docker load < $prepare_dir/registry-server.tar
#enlarge the TCP source port range to deal with functest thousands requests
sudo sysctl net.ipv4.ip_local_port_range="5000 65000"
echo -e "net.ipv4.ip_local_port_range='5000 65000'" >> /etc/sysctl.conf
echo -e "net.ipv4.ip_local_port_range= 5000 65000" >> /etc/sysctl.conf