-
Step 1 (ulimit): open the sysctl.conf and add this line fs.file-max = 65536
vi /etc/sysctl.conf
add following at end of file in above file:
fs.file-max = 65536
save and exit.
--- | |
- hosts: all | |
gather_facts: false | |
connection: local | |
become: yes | |
vars: | |
packages: | |
- apache2 | |
- mysql-server |
# ssh(1) obtains configuration data from the following sources in the following order: | |
# | |
# 1. command-line options | |
# 2. user's configuration file (~/.ssh/config) | |
# 3. system-wide configuration file (/etc/ssh/ssh_config) | |
# | |
# For each parameter, the first obtained value will be used. The configuration files contain sections separated | |
# by “Host” specifications, and that section is only applied for hosts that match one of the patterns given in the | |
# specification. The matched host name is the one given on the command line. | |
# |
cat file.txt | sed s/text/text2/ > file2.txt
scp username@hostname:/path/to/remote/file /local/path/to/copy/to/
find ./ -iname "index.php"