Mingo

个人笔记备忘录
ps -ef |awk '{print $NF}'|sort |uniq -c |sort -nr |head -...
扫描右侧二维码阅读全文
01
2019/05

个人笔记备忘录

ps -ef |awk '{print $NF}'|sort |uniq -c |sort -nr |head -10

lsof -c java | wc -l

//关闭仪表盘
defaults write com.apple.dashboard mcx-disabled -boolean YES && killall Dock
//开启仪表盘
defaults write com.apple.dashboard mcx-disabled -boolean NO && killall Dock

//创建数据库
create database abc character set utf8;
//数据库授权
grant all on abc.* to 'abcuser'@'%' identified by '123456' with grant option;
//刷新信息
flush privileges;

//查看数据库字符设置
show variables like 'char%';
//设置数据库字符
set character_set_client=utf8;
set character_set_connection=utf8;
set character_set_database=utf8;
set character_set_results=utf8;
set character_set_server=utf8;
set character_set_system=utf8;

find . -type d -name ".svn" |xargs rm -rvf

nohup /bin/bash /etc/inotify_rsync.sh &

yum install -y mysql mysql-server mysql-devel

ps aux| head -1;ps aux | grep -v PID | sort -rn -k +3 | head

dscacheutil -flushcache

setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config

export LC_CTYPE=C && cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16;echo
openssl rand -base64 32 | tr A-Z a-z|cut -c 1-16
cat /dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c100; echo

g/^$/d

%s/^#.*$//g

flush tables with read lock;
unlock tables;

echo 1 >/proc/sys/vm/drop_caches
>>drop_caches的值可以是0-3之间的数字,代表不同的含义:
---0:不释放(系统默认值)
---1:释放页缓存
---2:释放dentries和inodes
---3:释放所有缓存

ssh-copy-id -i ~/.ssh/id_rsa.pub -p 12580 root@192.168.1.1
Last modification:November 19th, 2019 at 09:11 pm

One comment

  1. Mingo

    我只是想 测试一下 表情 可以用不

Leave a Comment