Ubuntu20.04安装tiny server
需求:
最近使用Feedly和Innoreader都不太顺手。
Feedly必须要在手机上科学上网才能连接其网址,可以配置手机和Boox Poke2同时使用,就是网络连接问题。
Innoreader在手机上不需要科学上网,需要通过摇一摇修改api地址,但是Boox Poke2却没有传感器检测摇一摇,所以无法使用Innoreader
上网查询了之后,发现只有自己架设Tiny RSS Server比较靠谱,不过对流量不太清楚,毕竟AWS免费流量每个月只有15G。
参考:
使用docker安装,非常方便。
https://git.tt-rss.org/fox/ttrss-docker-compose/src/master/README.md
步骤:
下载克隆ttrss-docker代码
git clone [<https://git.tt-rss.org/fox/ttrss-docker-compose.git>](<https://git.tt-rss.org/fox/ttrss-docker-compose.git>) ttrss-docker && cd ttrss-docker
安装配置
复制.env-dev为.env,修改其内容
# Copy this file to .env before building the container.
# Put any local modifications here.
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
OWNER_UID=1000
OWNER_GID=1000
# You can keep this as localhost unless you want to use the ssl sidecar
# container (I suggest terminating ssl on the reverse proxy instead).
HTTP_HOST=localhost
# You will likely need to set this to the correct value, see README.md
# for more information.
SELF_URL_PATH=http://www.dormanthin.com:9000/tt-rss
# bind exposed port to 127.0.0.1 by default in case reverse proxy is used.
# if you plan to run the container standalone and need origin port exposed
# use next HTTP_PORT definition (or remove "127.0.0.1:").
#HTTP_PORT=127.0.0.1:9000
HTTP_PORT=9000
编译启动docker
docker-compose up --build -d
更新
#Stop the containers:
docker-compose down && docker-compose rm
#Update scripts from git:
git pull origin master and apply any necessary modifications to .env, etc.
#Rebuild and start the containers:
docker-compose up --build
使用:
http://www.dormanthin.com:9000/tt-rss
自行配置
问题:
一开始报了403错误,原来是配置网址时写错了,所以在编辑.env文件时,一定要注意正确的域名。
其他
无。
Ubuntu20.04安装tiny server was originally published on 蛰思园
docker常用命令
# 显示全部容器 docker ps -a # 显示当前运行的容器 docker ps # 关闭运行中的容器 docker stop 容器ID # 启动一个已经停止的容器 docker start 容器ID # 重启一个容器 docker restart 容器ID # 进入一个运行中的容器 docker attach 容器ID # 运行一个容器 docker run -it -p 8088:8088 -p 8089:8089 -p 8090:9090 -v /root/soft/docker:/root/soft/docker -v /root/soft/dockertt:/root/soft/dockertt loen/rc /bin/bash # 删除容器 docker rm 容器ID # 删除所有容器 docker rm $(docker ps -a) # 删除所有镜像 docker rmi $(docker images | grep -v RESPOSITORY | awk '{print $3}') # 查看本地镜像 docker images # 清理镜像 docker image prune
docker常用命令 was originally published on 蛰思园
安徒生童话
Oracle 千分位转数值
在网上找了各种办法,都略显复杂。
To_char,To_number, cast, convert各种函数,结果都没设置正确,直接用replace简单暴力。
select replace('123,123.25',',','') as 结果 from dual

Oracle 千分位转数值 was originally published on 蛰思园