如果你用的是cgmsv_21.2a这个版本
cgmsv_21.2a\nmp\nginx\conf\conf.d\www.conf这个文件用记事本打开,里面有这样一段:
- server {
- listen 80;
- server_name localhost;
-
- access_log logs/www.access.log main;
-
- root www;
- index index.html index.htm index.php;
-
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
复制代码
把其中的“listen 80;”改成你需要的端口,我这里改的是8000,那么我这里应该是:
- server {
- listen 8000;
- server_name localhost;
复制代码 ……
访问的话 你需要加协议前缀和端口号,例子:"http://127.0.0.1:8000",IP自己改 |