CentOS7源码安装Nginx
系统平台: 64 位
一、安装编译工具及库文件
[******@VM_0_5_centos ~]# yum ins logs/
events {
worker_connections 1024
}
http {
include
default_type application/octetstream
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/ main
sendfile on
tcp_nopush on#keepalive_timeout 0
keepalive_timeout 60
#gzip on
server {
listen 80
server_name localhost
#charset koi8r
#access_log logs/ main
location / {
root html
index
}
#error_page 404 /
# redirect server error pages to the static page /
#
error_page 500 502 503 504 /
location = / {
root html
}
# proxy the PHP scripts to Apache listening on :
CentOS7源码安装Nginx 来自淘豆网www.taodocs.com转载请标明出处.