Category: Ubuntu

Haproxy configuration

global
        ulimit-n  51200

defaults
        log global
        mode    tcp
        option  dontlognull
        contimeout 1000
        clitimeout 150000
        srvtimeout 150000

frontend ss-in
        bind *:81
        default_backend ss-out

backend ss-out
        server server1 origin_ip:port maxconn 20480

Easy to use crontab

If you want to add a time limit task to my server, you follow the steps:

  1. crontab -e
  2. Write like the command in the editor
  3. You can save the file in any location, and a copy will saved in /var/spool/cron
  4. crontab saved-file to take effect