Commit 88c191bb by ChongmingDu

update doc

parent 4b43a78b
......@@ -9,7 +9,7 @@
## 使用步骤
1. 确定自己的需求(是否需要ssl,是否准备好ssl证书,是否有测试和正式环境的域名,磁盘使用情况,应用使用情况等。出现如上问题自行解决)
2. 配置nginx,一定要把nginx/templates里面的几个nginx配置文件确认明白(使用到了ssl证书请放在file目录下),如果没有请按照已有几个自行配置(自行充分测试)
3. 修改firewall参数,在roles/base/files/firewall.sh中
3. 检查firewall参数,在roles/base/files/firewall.sh中(一般没问题)
4. 配置filebeat。修改filebeat/templates/filebeat.yml
5. 配置zabbix。分别确定zabbix server和agent的机器,修改相应的配置(templates里面的配置文件)。
6. 修改host.yml.examples内容,样例相同位置的host文件
......
......@@ -15,15 +15,6 @@
shell:
"tar -xzf /usr/local/tengine-2.2.2.tar.gz -C /usr/local/"
- name: "install nginx"
shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module –with-stream --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module --http-log-path=/data/logs/nginx/access.log --error-log-path=/data/logs/nginx/error.log &>/dev/null;make -j 4&&make install
- name: "link nginx bin"
file:
src: /usr/local/nginx/sbin/nginx
dest: /bin/nginx
state: link
- name: "Add to nginx user"
user:
name: nginx
......@@ -38,6 +29,16 @@
mode: 0755
state: directory
- name: "install nginx"
shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module –with-stream --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module --http-log-path=/data/logs/nginx/access.log --error-log-path=/data/logs/nginx/error.log &>/dev/null;make -j 4&&make install
- name: "link nginx bin"
file:
src: /usr/local/nginx/sbin/nginx
dest: /bin/nginx
state: link
- name: "mkdir nginx log dir"
file:
dest: /data/nginx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment