a nginx version: nginx/1.0.15 configure arguments(笔记)

本文详细介绍了Nginx 1.0.15版本的配置参数及特性,包括TLS SNI支持、模块启用情况及编译选项等。通过这些内容,读者可以了解Nginx的具体配置细节及其对性能的影响。
nginx version: nginx/1.0.15
TLS SNI support enabled
configure arguments: --pid-path=/var/run/nginx.pid
--conf-path=/etc/nginx/core.conf
--error-log-path=/var/log/nginx/nginx.log --user=wwwrun --group=nogroup
--with-ipv6 --without-poll_module --without-select_module
--with-file-aio --with-http_ssl_module --with-http_addition_module
--with-http_xslt_module --with-http_image_filter_module
--with-http_sub_module --with-http_dav_module --with-http_flv_module
--with-http_mp4_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_degradation_module
--with-http_stub_status_module --http-log-path=/var/log/nginx
--with-pcre --prefix=/usr --with-cc-opt='-O3 -march=native
-Wl,--hash-style=gnu -Wl,-O1 -flto -Wl,-z,relro'
--with-ld-opt='-L/usr/lib64 -L/lib64' --without-http_ssi_module
--without-http_uwsgi_module --without-http_scgi_module
--without-http_upstream_ip_hash_module
--without-http_split_clients_module --without-http_empty_gif_module
--- - name: Install Nginx from source (simple version) hosts: all become: yes vars: nginx_version: "1.26.0" nginx_url: "http://nginx.org/download/nginx-{{ nginx_version }}.tar.gz" tasks: - name: Install build dependencies yum: name: - gcc - pcre-devel - zlib-devel - openssl-devel state: present - name: Download Nginx source get_url: url: "{{ nginx_url }}" dest: "/tmp/nginx.tar.gz" - name: Extract source code unarchive: src: "/tmp/nginx.tar.gz" dest: "/usr/local/src" remote_src: yes - name: Configure Nginx command: > ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx.pid --with-http_ssl_module args: chdir: "/usr/local/src/nginx-{{ nginx_version }}" - name: Build and install Nginx shell: | make && make install args: chdir: "/usr/local/src/nginx-{{ nginx_version }}" - name: Create nginx user user: name: nginx system: yes shell: /sbin/nologin - name: Create log directory file: path: /var/log/nginx state: directory owner: nginx group: nginx - name: Create systemd service copy: content: | [Unit] Description=nginx - high performance web server After=network.target [Service] Type=forking PIDFile=/run/nginx.pid ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx ExecReload=/usr/sbin/nginx -s reload ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target dest: /etc/systemd/system/nginx.service - name: Reload systemd systemd: daemon_reload: yes name: nginx # 添加这行 - name: Start and enable Nginx service systemd: name: nginx enabled: yes state: started根据这个playbook,写一个关于mysql的类似
最新发布
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值