Skip to content

Commit b79fb6f

Browse files
authored
Update x-ui-pro.sh
1 parent 19f4353 commit b79fb6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

x-ui-pro.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v9.5.3 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v9.5.4 @ github.com/GFW4Fun ##############################################
33
[[ $EUID -ne 0 ]] && { echo "not root!"; exec sudo "$0" "$@"; }
44
##############################INFO######################################################################
55
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
@@ -203,8 +203,9 @@ user $nginxusr;
203203
worker_processes auto;
204204
pid /run/nginx.pid;
205205
include /etc/nginx/modules-enabled/*.conf;
206-
events {worker_connections 3333;}
207-
http{
206+
worker_rlimit_nofile 65535;
207+
events { worker_connections 8192; use epoll; }
208+
http {
208209
access_log /var/log/nginx/access.log;
209210
error_log /var/log/nginx/error.log;
210211
gzip on;sendfile on;tcp_nopush on;

0 commit comments

Comments
 (0)