ubuntu-14安裝elasticsearch設定檔問題 - Linux

Leila avatar
By Leila
at 2016-04-29T23:46

Table of Contents

我安裝了elasticsearch和nginx apache2
進入vim /etc/nginx/sites-available/default 打入設定檔
server {
listen 80;

server_name example.com;

location / {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';(這行會是紅字)
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
她顯示紅字讓我無法重啟
請問要怎麼解決

--
Tags: Linux

All Comments

Candice avatar
By Candice
at 2016-05-02T10:16
最後跑 nginx -t 檢查設定檔案語法有顯示錯誤嗎?
Adele avatar
By Adele
at 2016-05-04T07:55
改成雙引號試試?
Rae avatar
By Rae
at 2016-05-06T03:18
話說,這個應該算是kibana問題喔

CentOS 7 apache資料夾權限

David avatar
By David
at 2016-04-29T13:52
請問為什麼我將資料夾權限開啟777 php還是無法在該資料夾產生物件 請問是有什麼東西會影響到apache的權限嗎 error_log也說 PHP Warning: copy(/var/www/testpage/include/../xxxx_data/goods/20160429014612.jpg): ...

svn 通知 client user update

Una avatar
By Una
at 2016-04-29T12:04
爬了一些文都找不到,不知道 subsvn 是否可以做到自行通知 client user 目前有最新 版本要 update 呢? 我是搭配 tortoisesvn 一起使用 感謝各位大大解惑了 - ...

Ubuntu 16.04 不能登入開機畫面

Erin avatar
By Erin
at 2016-04-29T10:13
http://askubuntu.com/questions/759871/cant-login-to-ubuntu-16-04-after-upgrade http://askubuntu.com/questions/760730/x-org-does-not-start-after-15-10-to- ...

CentOS 7 httpd 無法啟動

Aaliyah avatar
By Aaliyah
at 2016-04-28T09:06
我在安裝CentOS7的時候用他裡面附的基本網路伺服器環境安裝 然後安裝完後httpd沒辦法啟動 輸入systemctl restart httpd後 回傳 Job for httpd.service failed because the control process exited with error c ...

ubuntu 16.04 使用瀏覽器常常當機

Lily avatar
By Lily
at 2016-04-27T22:51
裝了16.04之後,只要是瀏覽器開著(firefox或chrome)就會常常死當到要重開機 chrome是使用Gdebi裝官方deb包的版本,firefox則是內建的 我分頁開很多,但是記憶體是夠的,而且14.04中我使用上沒碰過類似的問題 而只要不開上述的二個瀏覽器就沒發生過死當的現象 版本上瀏覽器和os ...