Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Ant_Devops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
Ant_Devops
Commits
88c191bb
Commit
88c191bb
authored
Mar 07, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc
parent
4b43a78b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
README.md
+1
-1
roles/nginx/tasks/main.yml
+10
-9
No files found.
README.md
View file @
88c191bb
...
...
@@ -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文件
...
...
roles/nginx/tasks/main.yml
View file @
88c191bb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment