本文共 835 字,大约阅读时间需要 2 分钟。
cp -r
rm -rfls -rifconfig --找到ip
ps -ef|grep xxx --找到pidnetstat -nlp|grep pid --找到端口也可以ps查看xxx服务的路径地址,找到配置文件,查看配置文件mv快
~/.bash_profile
more ~/.bash_profile查看 source ~/.bash_profile或. ~/.bash_profile生效vi /etc/passwd 把/home/jepson改为/usr/local/mysql
或usermod -d /usr/local/mysql jepson更改可从原家目录cp一份过来 或者手动创建。
i --进入编辑模式
esc --退出编辑:wq --保存退出:q! --不保存退出su - xxx
sudo
/etc/sudoers
1 >> --追加
2 > --覆盖tail -f
tail -Fkill -9 $(pgrep -f xxx)
转载于:https://blog.51cto.com/10814168/2112743