MENU

正式后台常用命令(一)

April 3, 2018 • Read: 1702 • 工作linux阅读设置

查找文件位置

find / -name php.ini

前端起redis

cd /etc/redis/
redis-server redis.conf
sudo service redis-server stop start restrat

查找参数

maxmemory

删掉所有的key

flushall

前端起nginx

sudo /usr/local/nginx/sbin/nginx

后台重启redis

sudo service redis-server restart

停止nginx

sudo servcie nginx stop

启动nginx

sudo service nginx start

重启nginx

sudo service nginx restart

测试nginx

sudo /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

停止FPM

sudo service php7.0-fpm stop

启动FPM

sudo service php7.0-fpm start

清楚redis keys 值

redis-cli keys "order_*" | xargs redis-cli del

重启FPM

sudo 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 -h
newjiekeyin.loohh3.ng.0001.apse1.cache.amazonaws.com -p 6379

兼总条贯 知至知终

最后编辑于: April 9, 2019