It's almost a month before I went back to the Shenzhen Branch, because I couldn't browse 95% of webpages under Ubuntu. After intermittent error detection, I finally found a solution to this problem. So excited. Finally, the solution was too simple. However, during this search for problems, I found many of my own shortcomings, which really needed a lot of improvement, especially network knowledge, too scarce. Solution: 1. Modify the file/etc/sysctl. conf. sudogedit/etc/sysctl. conf2. in this file
It's almost a month before I went back to the Shenzhen Branch, because I couldn't browse 95% of webpages under Ubuntu. After intermittent error detection, I finally found a solution to this problem. So excited.
Finally, the solution was too simple. However, during this search for problems, I found many of my own shortcomings, which really needed a lot of improvement, especially network knowledge, too scarce.
Solution:
1. Modify the file/etc/sysctl. conf.
Sudo gedit/etc/sysctl. conf
2. Add the following sentence at the end of this file. Not to mention this, it is the parameter that I have obtained after countless experiments. (The parameters vary in different network environments, and the unit of this parameter is the memory page, not the byte, which makes me dizzy)
Net. ipv4.tcp _ rmem = 4096 87380 110592
3. Run the following command to make the parameter take effect.
Sudo sysctl-p