在 Linux 系統下,如何讓 Workerman 在開機時自動啟動

請打開 /etc/rc.local,在 exit 0 之前添加類似以下的程式碼:

ulimit -HSn 102400
/usr/bin/env php /磁碟/路徑/start.php start -d

exit 0