存在的记忆 - 工作linux
type: channel
link: https://www.looaon.com/index.php/tag/工作linux/
items: 正式后台常用命令（三）
items: 正式后台常用命令（二）
items: 正式后台常用命令（一）

正式后台常用命令（三）
type: item
date: 2019-06-19T10:42:00+08:00
description: 毛哥89起gdwscd /project/esensoft/tomcat5.5/bin screen -S BI ./catalina.sh run

正式后台常用命令（二）
type: item
date: 2019-04-09T16:29:00+08:00
description: redis-dump password > /opt/redis_6378.json scp root@172.31.11.199:/opt/redis_6378.json scp -r /opt/redis_6378.json root@172.31.21.74:/opt 172.31.11.199 172.31.21.74 scp root@172.31.11.199://opt/redis_6378.json /home/user scp -r -i /opt/nuorui root@13.250.166.18:/opt/redis_6378.json /opt/ scp -r -i /opt/qianduan.pem root@13.250.166.18:/opt/redis_6378.json /opt/ scp -r -i /opt/qianduan.pem ubuntu@172.31.11.199:/opt/redis_6378.json /opt/ 在老后台运行，将新后台文件拉取到老后台 scp -P 4312 -r -i /www/wwwroot/houtai.pem ubuntu@172.31.1.0:/var/www/gsso/ /www/wwwroot/ cd /var/www/nuoruishop/runtime/log/201803 && grep -rn "正在准备入库" product_form_27.log | grep -rn "NV600030775" scp -r -i /project/conf/yisainuo-tan-mao.pem root@172.31.19.107:/project/tomcat7/webapps/ROOT /project/tomcat7/webapps/

正式后台常用命令（一）
type: item
date: 2018-04-03T09:30:00+08:00
description: 查找文件位置find / -name php.ini 前端起rediscd /etc/redis/ redis-server redis.conf sudo service redis-server stop start restrat 查找参数maxmemory 删掉所有的keyflushall 前端起nginxsudo /usr/local/nginx/sbin/nginx 后台重启redissudo service redis-server restart 停止nginxsudo servcie nginx stop 启动nginxsudo service nginx start 重启nginxsudo service nginx restart 测试nginxsudo /usr/sbin/nginx -t sudo /usr/sbin/nginx -s reload php配置文件目录/etc/php/7.0/fpm php日志目录/var/log fpm配置文件位置/etc/php/7.0/fpm/pool.d 操作日志文件目录cd /var/www/nuoruishop/runtime/log/ 前端日志目录/var/www/nuoruishop/runtime/log 停止FPMsudo service php7.0-fpm stop 启动FPMsudo service php7.0-fpm start 清楚redis keys 值redis-cli keys "order_*" | xargs redis-cli del 重启FPMsudo service php7.0-fpm restart s3备份命令s3cmd ls s3://nrpicture s3cmd put -r 20181201 s3://nrpicture/ueditor/ s3cmd put -r 20170905 s3://nrpicture/ueditor/ s3cmd put -r 目录名 s3://nrpicture/ueditor/ sudo tail -f php7.0-fpm.log ps -aux|grep fpm|wc -l cd/var/www/nuoruishop/application/frontend/ redis-cli -c -hnewjiekeyin.loohh3.ng.0001.apse1.cache.amazonaws.com -p 6379