MalacoWiki

wiki of malacology

nginx

nginx可以帮助用户快速建站。

安装

sudo pacman -S nginx

配置

/etc/nginx/nginx.confhttp配置

    include       sites-enabled/*.conf;
    
    types_hash_max_size 4096;
    server_names_hash_bucket_size 128;
    types_hash_bucket_size 64;
    
    client_max_body_size     3m;
    client_body_buffer_size  128k;
    proxy_connect_timeout    600;
    proxy_read_timeout       600;
    proxy_send_timeout       6000;
    proxy_buffer_size        16k;
    proxy_buffers            4 64k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;

user修改

user root;

配置文件今后就为/etc/nginx/sites-enabled下的conf文件

启动

systemctl enable nginx
systemctl restart nginx
Last updated on 11 Aug 2021
Published on 11 Aug 2021

Powered by Arch. Copyright by Guoyi.