目前个人有一台1核2G的腾讯云服务器 一个域名 最终静态页面是部署在腾讯云服务器
平时会分享一些自己闲言碎语 包括技术、音乐、运动等等 有兴趣可关注
https://becool.vip/
hugo建站步骤
hugo网站增加评论
网站https证书申请 自动续期
apt install ariac2
sudo aria2c --conf-path=/xxpath/aria2.conf -D
npm install http-server -g
cd /sharefiles;nohup http-server -a 0.0.0.0 -p 6666 >~/log/httpServer.log 2>&1 &
这里是无意间逛github看到的一个开源云笔记软件,目前个人一直还在使用 有兴趣的可以试试
相关介绍网站
docker安装部署
拉取镜像docker pull zadam/trilium:0.61-latest
选定数据目录 修改配置文件config.ini
[General]
# Instance name can be used to distinguish between different instances using backend api.getInstanceName()
instanceName=
# set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
noAuthentication=false
# set to true to disable backups (e.g. because of limited space on server)
noBackup=false
# Disable automatically generating desktop icon
# noDesktopIcon=true
[Network]
# host setting is relevant only for web deployments - set the host on which the server will listen
# host=0.0.0.0
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
port=8080
# true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
https=false
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
certPath=
keyPath=
# setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted),
# alternatively 'true' will make use of the leftmost IP in X-Forwarded-For, ultimately an integer can be used to tell about the number of hops between
# Trilium (which is hop 0) and the first trusted rev. proxy.
# once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients.
# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
trustedReverseProxy=false
docker启动
将本机的8081端口映射到docker的8080端口 将本地/home/xxx/trilium_data挂载到docker内部的/home/node/trilium-data目录
sudo docker run -d -p 0.0.0.0:8081:8080 -v /home/xxx/trilium_data:/home/node/trilium-data zadam/trilium:0.61-latest
docker logs 实例ID
查看没有报错 docker ps
实例一直存在就是没有问题
浏览器打开http://xxip:8081 初始化登录密码后就可以享受私人云笔记了
软件版本升级
docker stop 实例id
停掉原有实例 docker pull zadam/trilium:0.62-latest
拉取新版本 sudo docker run -d -p 0.0.0.0:8081:8080 -v /home/xx/trilium_data:/home/node/trilium-data zadam/trilium:0.62-latest
sudo apt-get install samba
sudo vi /etc/samba/smb.conf
在最后添加一下内容
[share]
comment = ubuntu_share
path = /共享目录绝对路径
public = yes
writable = yes
available = yes
browseable = yes
小米电视用的协议比较老 还需要做以下配置修改
server min protocol = CORE
sudo smbpasswd -a ftp
sudo service smbd restart
smb://ip
本文由 mdnice 多平台发布
上一篇:终于清楚《wepOKE》软件透明挂!(辅助挂)外挂透明挂智能ai(2021已更新)(哔哩哔哩)
下一篇:pip intall pywin32出现 error: subprocess-exited-with-error 错误的解决办法