Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Last active January 18, 2017 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carnal0wnage/01963c7a36235e90c11ef8756e76d3d5 to your computer and use it in GitHub Desktop.
Save carnal0wnage/01963c7a36235e90c11ef8756e76d3d5 to your computer and use it in GitHub Desktop.
redis crontab /tmp/888
redis-cli flushall # 为了方便测试
redis-cli set test 'test'
redis-cli set my 'mymymymymymymymymymymymy'
redis-cli set word 'wordwordwordwordwordword'
redis-cli set hello 'ringzero'
redis-cli set word1 'word1word1word1word1word1word1'
echo -e "\n\n*/1 * * * * /bin/touch /tmp/888\n\n"|redis-cli -x set 1
redis-cli config set dir /var/spool/cron/
redis-cli config set dbfilename root
redis-cli save
redis-cli flushall
echo -e "\n\n*/1 * * * * /bin/touch /tmp/888\n\n"|redis-cli -x set 1
redis-cli config set dir /var/spool/cron/
redis-cli config set dbfilename root
redis-cli save
from https://phpinfo.me/2016/07/07/1275.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment