〇Minifulx2の画面
〇インストール方法
1. PostgreSQLのインストール方法
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get -y install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-12
echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/12/main/postgresql.conf
echo "host all all 127.0.0.1/32 password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf
echo "host all all 192.168.1.0/24 password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf
sudo systemctl restart postgresql.service
sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
EOF
export PGPASSWD=psotgres
sudo systemctl restart postgresql-12.service
sudo su - postgres << EOF
createdb miniflux2
psql -c "
alter database miniflux2 owner to miniflux2;
"
EOF
2. minifulx2のインストールする
wget https://github.com/miniflux/miniflux/releases/download/2.0.21/miniflux_2.0.21_amd64.deb
sudo dpkg -i miniflux_2.0.21_amd64.deb
echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf
miniflux -migrate
sudo apt-get -y install expect
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF
sudo systemctl enable miniflux
sudo systemctl start miniflux
3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードあadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default
0 件のコメント:
コメントを投稿