--- public/md/elk/elastic-setup.sh
+++ public/md/elk/elastic-setup.sh
... | ... | @@ -7,7 +7,6 @@ |
7 | 7 |
sudo chown -R ec2-user:ec2-user /usr/share/nginx/html |
8 | 8 |
echo "<h1>Hello World</h1>" > /usr/share/nginx/html/hello.html |
9 | 9 |
|
10 |
-sudo yum remove java-1.7.0-openjdk.x86_64 -y |
|
11 | 10 |
sudo yum install java-1.8.0-openjdk-devel.x86_64 -y |
12 | 11 |
|
13 | 12 |
mkdir ~/local |
... | ... | @@ -37,3 +36,13 @@ |
37 | 36 |
cd - |
38 | 37 |
nohup bin/logstash -f logconf/okdevtv.conf & |
39 | 38 |
|
39 |
+sudo amazon-linux-extras install -y nginx1.12 |
|
40 |
+sudo systemctl enable nginx |
|
41 |
+ |
|
42 |
+sudo mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig |
|
43 |
+sudo sh -c "sed '38,87d' /etc/nginx/nginx.conf.orig > /etc/nginx/nginx.conf" |
|
44 |
+cd /etc/nginx/conf.d |
|
45 |
+sudo curl -O https://raw.githubusercontent.com/kenu/okdevtv/main/sh/elk.conf |
|
46 |
+sleep 2 |
|
47 |
+sudo systemctl start nginx |
|
48 |
+ |
--- sh/elk.conf
+++ sh/elk.conf
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 |
|
10 | 10 |
location / { |
11 | 11 |
sendfile off; |
12 |
- proxy_pass http://127.0.0.1:3010; |
|
12 |
+ proxy_pass http://127.0.0.1:5601; |
|
13 | 13 |
proxy_redirect default; |
14 | 14 |
proxy_http_version 1.1; |
15 | 15 |
proxy_set_header Host $host; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?