Finally, it completely solved the problem of accessing the Internet in Ubuntu.

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.