We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ps -ef|grep php-fpm|awk '{print " -p " $2" -e trace=file -tt -T -v -f -s 10000 -o /a/strace_"$2".log"}'|xargs strace
strace -o output.txt -T -tt -e trace=all -p 33923
service php-fpm restart
/etc/init.d/php-fpm {start|stop|force-quit|restart|reload|status}
rm -rf xxx/*
find . -type d -name ".svn"|xargs rm -rf
bad interpreter
set ff=unix
scp -r web/ 10.22.11.1:/vdb1/
sed -n '/2018\/10\/02/,/2018\/10\/02/p' /vdb1/nginx_log/error_log > /root/081002.txt
sed -n -r '/2021\/12\/29 00:0/p' ./xx.cn.log >22.txt
ps -aux | grep php-fpm
kill -SIGUSR2 process_id
du -sh *
#!/bin/bash for dir in $(ls ./ -F) do if [[ -d $dir ]] && [[ $dir != "syncDir/" ]];then cp -r syncDir/* $dir fi done rm syncDir/* -rf
vi /etc/pam.d/login
session required pam_limits.so
vi /etc/security/limits.conf
* soft nproc 1048576 * hard nproc 1048576 * soft nofile 1048576 * hard nofile 1048576
vi /etc/rc.local, 添加 ulimit -n 1048576
nginx 需要额外修改:vi /etc/systemd/system/nginx.service 再service下添加 LimitNOFILE=100000
vi /etc/systemd/system/nginx.service
LimitNOFILE=100000
find ./ -maxdepth 2 -name .env |xargs grep "xxx.com"
ps aux|head -n1;ps aux|grep -v PID|sort -nr -k6|head -n100
ps -ef | grep firefox | grep -v grep | cut -c 9-15 | xargs kill -s 9
*/3 * * * * /usr/bin/flock -w 0 /data/cron-minute-lock.lock /data/cron-minute.sh
grep -r "server_name" ./ |cut -d " " -f 2,3,4,5,6,7,8 > site.txt
tar -czvf xxx.tar.gz xxx/
find ./ -ctime +7 -name \*.xlsx | xargs rm -f
sed -i -r "/.*server_name.*/s#(.*);#\1 127.0.0.1:${current_port};#" $dir
更多
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ps -ef|grep php-fpm|awk '{print " -p " $2" -e trace=file -tt -T -v -f -s 10000 -o /a/strace_"$2".log"}'|xargs strace
; 跟踪指定进程:strace -o output.txt -T -tt -e trace=all -p 33923
service php-fpm restart
或/etc/init.d/php-fpm {start|stop|force-quit|restart|reload|status}
rm -rf xxx/*
find . -type d -name ".svn"|xargs rm -rf
bad interpreter
:set ff=unix
即可。scp -r web/ 10.22.11.1:/vdb1/
, -r会把包括文件夹在内一起复制过去sed -n '/2018\/10\/02/,/2018\/10\/02/p' /vdb1/nginx_log/error_log > /root/081002.txt
也可以找包含某个具体时间段的数据:sed -n -r '/2021\/12\/29 00:0/p' ./xx.cn.log >22.txt
ps -aux | grep php-fpm
,kill -SIGUSR2 process_id
du -sh *
vi /etc/pam.d/login
,添加session required pam_limits.so
vi /etc/security/limits.conf
添加:nginx 需要额外修改:
vi /etc/systemd/system/nginx.service
再service下添加LimitNOFILE=100000
find ./ -maxdepth 2 -name .env |xargs grep "xxx.com"
ps aux|head -n1;ps aux|grep -v PID|sort -nr -k6|head -n100
内存占用量前100ps -ef | grep firefox | grep -v grep | cut -c 9-15 | xargs kill -s 9
*/3 * * * * /usr/bin/flock -w 0 /data/cron-minute-lock.lock /data/cron-minute.sh
grep -r "server_name" ./ |cut -d " " -f 2,3,4,5,6,7,8 > site.txt
tar -czvf xxx.tar.gz xxx/
find ./ -ctime +7 -name \*.xlsx | xargs rm -f
sed -i -r "/.*server_name.*/s#(.*);#\1 127.0.0.1:${current_port};#" $dir
The text was updated successfully, but these errors were encountered: