Package graylog-web is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source.
E: Package 'graylog-web' has no installation candidate
答案1
你必須注意到格雷洛格有四個主要組成部分:
- Graylog伺服器節點:充當接收和處理訊息的工作人員,並與所有其他非伺服器元件進行通訊。
- Elasticsearch 節點:儲存所有日誌和訊息的伺服器。
- MongoDB:用於儲存元數據
- 網路介面:GUI
您必須先安裝所有先決條件:
安裝 Java 然後更新:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
安裝 MongoDB 並建立來源列表:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
更新並安裝最新的可用穩定版本後:
sudo apt-get update
sudo apt-get install mongodb-org
安裝 Graylog 伺服器:
cd ~
wget https://packages.graylog2.org/repo/packages/graylog-1.3-repository-ubuntu14.04_latest.deb
sudo dpkg -i graylog-1.3-repository-ubuntu14.04_latest.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get install graylog-server
sudo apt-get install pwgen
SECRET=$(pwgen -s 96 1)
sudo -E sed -i -e 's/password_secret =.*/password_secret = '$SECRET'/' /etc/graylog/server/server.conf
PASSWORD=$(echo -n password | shasum -a 256 | awk '{print $1}')
sudo -E sed -i -e 's/root_password_sha2 =.*/root_password_sha2 = '$PASSWORD'/' /etc/graylog/server/server.conf
直到這一步驟安裝了管理員密碼,之後您需要根據您的需求設定graylog,您可以在此處找到設定檔:
sudo vi /etc/graylog/server/server.conf
祝你好運,