Command #1

  • test queue
    • php artisan queue:work --queue=default 
  • curl benchmark load test    
    • ab -k -n 100 -c 10 http://api-order.eggsmartpos.loc:8302/v1/payment/charge
  •  install redis
    • composer require predis/predis
  • self to api using 
    • tail -f storage/
    • tail -f /var/log/ 
    • tail -f /var/log/nginx/
    • tail -f /var/log/nginx/app.access.log 
  • install ping
  • apt update 
    apt install iputils-ping

    #upload size max
    cd /usr/local/etc/php

    cp php.ini-development php.ini 



    #kill nodes
    ps -ef
    kill -9 <pid ของ nodejs>
#redis 
redis-cli monitor

redis-cli FLUSHALL
var_dump($this->redis->hGetAll($key));die;

kill -9 $(lsof -t -i tcp:9000)