screenshot
install
#CentOS system wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh #Ubuntu system wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh #Debian system wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
#Enter the root directory of the website and change the path to your own before running cd /www/wwwroot/www.moerats.com #Download selfoss wget https://github.com/SSilence/selfoss/releases/download/2.18/selfoss-2.18.zip #Unzip and rename the configuration file unzip selfoss-2.18.zip && rm -rf selfoss-2.18.zip cp defaults.ini config.ini #Give folder permission chown -R www:www ./ chmod 775 data/cache data/favicons data/logs data/thumbnails data/sqlite public/
location ~ ^/favicons/.*$ { try_files $uri /data/$uri; } location ~ ^/thumbnails/.*$ { try_files $uri /data/$uri; } location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { deny all; } location / { index index.php index.html index.htm; try_files $uri /public/$uri /index.php$is_args$args; }
location ~ .*\. (gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log off; access_log off; } location ~ .*\. (js|css)?$ { expires 12h; error_log off; access_log off; }
#Site address, login user name and hash password base_url= https://www.moerats.com username=moerats password=kjl1289$swpaf4JPllpKJQp94h/LF1
Manual installation
#Debian 8 system echo "deb http://packages.dotdeb.org jessie all" | tee --append /etc/apt/sources.list echo "deb-src http://packages.dotdeb.org jessie all" | tee --append /etc/apt/sources.list wget --no-check-certificate https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt update apt install nginx cron unzip php7.0-cgi php7.0-fpm php7.0-curl php7.0-gd php7.0-mbstring php7.0-xml php7.0-sqlite sqlite -y #Debian 9 system apt update apt install nginx unzip cron php7.0-pdo php7.0-fpm php7.0-tidy php7.0-gd php7.0-mbstring php7.0-xml php7.0-sqlite sqlite -y
#New Site Root mkdir -p /www/wwwroot/selfoss #Enter the root directory of the website cd /www/wwwroot/selfoss #Download selfoss wget https://github.com/SSilence/selfoss/releases/download/2.18/selfoss-2.18.zip #Unzip and rename the configuration file unzip selfoss-2.18.zip && rm -rf selfoss-2.18.zip cp defaults.ini config.ini #Give folder permission chown -R www-data:www-data ./ chmod 775 data/cache data/favicons data/logs data/thumbnails data/sqlite public/
#Modify the domain name to your own, and then copy it to SSH to run cat > /etc/nginx/conf.d/selfoss.conf << "EOF" server { listen 80; server_name www.moerats.com; root /www/wwwroot/selfoss; index index.html index.php; location ~* \ (gif|jpg|png) { expires 30d; } location ~ ^/favicons/.*$ { try_files $uri /data/$uri; } location ~ ^/thumbnails/.*$ { try_files $uri /data/$uri; } location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { deny all; } location / { index index.php index.html index.htm; try_files $uri /public/$uri /index.php$is_args$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } } EOF
#Set it to run every 30 minutes, and change the domain name to your own echo "*/30 * * * * /usr/bin/curl -Ls ' http://www.moerats.com/update ' >/dev/null" > bt.cron crontab bt.cron rm -rf bt.cron
Docker installation
#CentOS 6 rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on #CentOS 7、Debian、Ubuntu curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker
docker run --name selfoss -d -p 8000:8888 -e CRON_PERIOD=30m -v /root/selfoss:/selfoss/data hardware/selfoss
#Login user name and hash password username=moerats password=kjl1289$swpaf4JPllpKJQp94h/LF1
https://feedex.net/ https://fivefilters.org/content-only/
Copyright notice: This is an original article, and the copyright belongs to Rat's Blog All, please indicate the source for reprinting!
Link to this article: https://www.moerats.com/archives/948/
If the tutorial needs to be updated, or 404 appears on the related link, you can leave a comment below the article.