resource limits and mysql

This commit is contained in:
Paul Trowbridge 2018-08-23 13:34:17 -04:00
parent abd8a2c459
commit dd05e92a70
1 changed files with 29 additions and 1 deletions

30
bash.md
View File

@ -35,4 +35,32 @@ wc - print line counts
free - memory usage
du - disk space by file
du - disk space by file
Resource Limit
--------------------------------------------------------------------------------------------------------------
`ulimit -a` to see all limits
file at /etc/security/limits.conf to configure defaults
MySQL
---------------------------------------------------------------------------------------------------------------
connection like `mysql -u root -p`
`show databases;`
user is in the format root@127.0.0.1
`grant all prviileges on *.* to 'root'@'127.0.0.1'`
data is stored in /var/lib/mysql
failure to drop a db can be due to presence of unknown file in the database directory
SSH
----------------------------------------------------------------------------------------------------------------
add client
* client uses ssh-keygen to create a key in `/home/un/.ssh/` under files `id_rsa` and `id_rsa.pub`
* host setup //etc/ssh/sshd_config to allow passwords and restart
* client uses `ssh-copy-id host_address -p port_num` to move the key to the host
* client uses `ssh` to login