Ubuntu solves the sudo: source: command not found Error
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszs
Run the following command on Ubuntu Server. The default number of opened files is 1024.
$ Ulimit-n1024
Edit the/etc/profile configuration file and add the last line:
Ulimit-SHn 65535
To make the configuration take effect:
$ Sudo source/etc/profilesudo: source: command not found
What if we directly execute the ulimit-SHn 65535 command?
$ Ulimit-SHn 65535-bash: ulimit: open files: cannot modify limit: Operation not permitted $ sudo ulimit-SHn 65535 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?
The correct method is as follows:
$ Sudo-s # source/etc/profile
Run ulimit again. You can see that the number of opened files has changed to 65535.
# Ulimit-n65535