server.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "server": {
  3. "user": "root",
  4. "password": "123456",
  5. "charset": "utf8mb4",
  6. "host": "web-php7_smproxy",
  7. "port": "3366",
  8. "mode": "SWOOLE_PROCESS",
  9. "sock_type": "SWOOLE_SOCK_TCP",
  10. "logs": {
  11. "open":true,
  12. "config": {
  13. "system": {
  14. "log_path": "ROOT/logs",
  15. "log_file": "system.log",
  16. "format": "Y/m/d"
  17. },
  18. "mysql": {
  19. "log_path": "ROOT/logs",
  20. "log_file": "mysql.log",
  21. "format": "Y/m/d"
  22. }
  23. }
  24. },
  25. "swoole": {
  26. "worker_num": "swoole_cpu_num()",
  27. "max_coro_num": 6000,
  28. "open_tcp_nodelay": true,
  29. "daemonize": true,
  30. "heartbeat_check_interval": 60,
  31. "heartbeat_idle_time": 600,
  32. "reload_async": true,
  33. "log_file": "ROOT/logs/swoole.log",
  34. "pid_file": "ROOT/logs/pid/server.pid"
  35. },
  36. "swoole_client_setting": {
  37. "package_max_length": 16777215
  38. },
  39. "swoole_client_sock_setting": {
  40. "sock_type": "SWOOLE_SOCK_TCP"
  41. }
  42. }
  43. }