Ubuntu solves the sudo: source: commandnotfound Error

Source: Internet
Author: User
Execute the following command on javastuserver. The default number of opened files is 1024. $ Ulimit-n1024 edit the/etc/profile and add the last line: ulimit-SHn65535 to make the configuration take effect: $ sudosource/etc/profilesudo: source: commandnotfound we run ulimit-SHn directly

Run the following command on Ubuntu Server. The default number of opened files is 1024.

$ Ulimit-n

1024

Edit the/etc/profile configuration file and add the last line:

Ulimit-SHn 65535

To make the configuration take effect:

$ Sudo source/etc/profile

Sudo: source: command not found

What if we directly execute the ulimit-SHn 65535 command?

$ Ulimit-shn65535

-Bash: ulimit: open files: cannot modify limit: Operation not permitted

$ Sudo ulimit-shn65535

Sudo: ulimit: command not found

After obtaining the root permission, a common user prompts that the command cannot be found. How can this problem be solved?

$ Sudo-s

# Source/etc/profile

Run ulimit again. You can see that the number of opened files has changed to 65535.

# Ulimit-n

65535

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.