摘要:系统运维 配置文件>> worker_processes 1; events {worker_connections 1024;} http {log_format main '$remote_addr - $remote_use
系统运维
配置文件>>
worker_processes 1;
events {
worker_connections 1024;
}
http {
log_format main \'$remote_addr - $remote_user [$time_local] "$request" \'
\'$status $body_bytes_sent "$http_referer" \'
\'"$http_user_agent" "$http_x_forwarded_for"\';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
#文件服务器
server {
listen 80;
server_name localhost;
charset utf-8,gbk;
root E:/tool;
location / {
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
}
}
}
访问:http://127.0.0.1
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28