- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...$ cp /etc/redis.conf /etc/redis-xxx.conf...| import os | |
| LOGS_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'logs') | |
| LOGGING = { | |
| 'version': 1, | |
| 'dusable_existing_loggers': True, | |
| 'formatters': { | |
| 'normal': { | |
| 'format': '%(levelname)s %(asctime)s %(module)s %(message)s' |
| for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
| host:=0.0.0.0 | |
| port:=8000 | |
| activate_venv=source venv/bin/activate | |
| debug: | |
| ./manage.py runserver $(host):$(port) | |
| start-uwsgi: | |
| $(activate_venv) \ | |
| && uwsgi --socket 127.0.0.1:$(port) \ |
| /** | |
| * Base constructor for all React elements. This is only used to make this | |
| * work with a dynamic instanceof check. Nothing should live on this prototype. | |
| * | |
| * @param {*} type | |
| * @param {string|object} ref | |
| * @param {*} key | |
| * @param {*} props | |
| * @internal | |
| */ |
| netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' |
| server { | |
| listen 80; | |
| server_name smile.limijiaoyin.com; | |
| access_log /var/log/nginx/smile.access.log; | |
| error_log /var/log/nginx/smile.error.log; | |
| client_max_body_size 200m; | |
| keepalive_timeout 9000; | |
| gzip on; |