首页
关于
Search
1
安卓旧手机利用,linuxdeploy使用教程
268 阅读
2
:Uptime Kuma网站监控搭建教程
170 阅读
3
常用脚本
157 阅读
4
linuxdeploy开机自启
150 阅读
5
FRP搭建教程半自动
142 阅读
默认分类
登录
Search
标签搜索
linux
linuxdeploy
EUSERV
aria2
alist
DDNS
python
IPV6
HAX
宝塔
ssh
甲骨文
DD
微软E5
Microsoft 365 E5 Renew X
FRP
安卓
nginx
Cloudflare
紫鼠
累计撰写
28
篇文章
累计收到
2
条评论
首页
栏目
默认分类
页面
关于
搜索到
28
篇与
的结果
2022-12-24
安卓linuxdeploy使用supervisor代替systemd
使用linuxdeploy搭建linux后,无法使用systemd,导致很多程序无法部署,研究后决定使用supervisor代替。安装我用的是debian,可以直接命令安装apt-get install supervisor然后回自动配置好开机自启在init.d目录里边,安装结束开始配置需要的程序启动supervisord进程supervisord -c /etc/supervisor/supervisord.conf修改自己的内容[inet_http_server] port=0.0.0.0:4001 ;默认配置只能本地访问,配置成0.0.0.0可以通过外部查看监控界面 username= 用户名 password= 密码 [supervisord] logfile=/root/jianguo/log/supervisord.log ; (main log file;default $CWD/supervisord.log) logfile_maxbytes=10KB ; (max main logfile bytes b4 rotation;default 50MB) logfile_backups=10 ; (num of main logfile rotation backups;default 10) loglevel=info ; (log level;default info; others: debug,warn,trace) pidfile=/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) nodaemon=false ; (start in foreground if true;default false) minfds=1024 ; (min. avail startup file descriptors;default 1024) minprocs=200 ; (min. avail process descriptors;default 200) [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///run/supervisor/supervisor.sock ; use a unix:// URL for a unix socket serverurl=http://127.0.0.1:4001 username=用户名 ; should be same as http_username if set password=密码 ; should be same as http_password if set [program:frp] ;进程名 command = /root/jianguo/frp/frpc -c /root/jianguo/frp/frpc.ini ;运行的命令 directory = /root/jianguo/frp/ ;运行命令所在的文件夹 stdout_logfile = /root/jianguo/log/x_ui.log ;日志打印文件位置 autostart = true ;是否设置启动后自动启进程 startsecs = 5 ;设置启动后几秒开始启进程 autorestart = true ;是否自动重启 startretries = 9999999 ;重启次数 stdout_logfile_maxbytes = 10KB ;日志最大容量,达到后新建一个日志文件然后重启主进程supervisord:supervisorctl reload另外几个常用命令service supervisor start #开启服务 service supervisor stop #结束服务 service supervisor restart #重启服务 service supervisor status #查看状态
2022年12月24日
93 阅读
0 评论
0 点赞
2022-12-16
搭建alist配合aria2实现离线下载
1.aria2搭建apt install wget curl ca-certificates wget -N git.io/aria2.sh && chmod +x aria2.sh ./aria2.sh按照提示选择就可以了2.安装alist一键安装参考官网我目前使用的是手机搭建的不能使用systemd只能使用init.d代替了下载程序下载地址wget 文件链接 tar -zxvf 文件名 chmod +x alist ./alist server #记录用户密码后,按ctrl➕c退出在etc/init.d目录创建文件alist,填入下边的代码#!/bin/sh # For RedHat and cousins: # chkconfig: - 99 01 # alist # processname: /root/alist ### BEGIN INIT INFO # Provides: /root/alist # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: alist # Description: alist ### END INIT INFO cmd="/root/alist "server"" name=$(basename $(readlink -f $0)) pid_file="/var/run/$name.pid" stdout_log="/var/log/$name.log" stderr_log="/var/log/$name.err" [ -e /etc/sysconfig/$name ] && . /etc/sysconfig/$name get_pid() { cat "$pid_file" } is_running() { [ -f "$pid_file" ] && ps $(get_pid) > /dev/null 2>&1 } case "$1" in start) if is_running; then echo "Already started" else echo "Starting $name" $cmd >> "$stdout_log" 2>> "$stderr_log" & echo $! > "$pid_file" if ! is_running; then echo "Unable to start, see $stdout_log and $stderr_log" exit 1 fi fi ;; stop) if is_running; then echo -n "Stopping $name.." kill $(get_pid) for i in $(seq 1 10) do if ! is_running; then break fi echo -n "." sleep 1 done echo if is_running; then echo "Not stopped; may still be shutting down or shutdown may have failed" exit 1 else echo "Stopped" if [ -f "$pid_file" ]; then rm "$pid_file" fi fi else echo "Not running" fi ;; restart) $0 stop if is_running; then echo "Unable to stop, will not attempt to start" exit 1 fi $0 start ;; status) if is_running; then echo "Running" else echo "Stopped" exit 1 fi ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac exit 0如果文件不在root目录,记得修改里边的路径然后执行cd /etc/init.d sudo update-rc.d alist defaults可以参考这个文章 CSDN
2022年12月16日
95 阅读
0 评论
0 点赞
2022-12-16
安卓linuxdeploy使用DDNS
前言不知道为什么下载最新版的一直报错建议大家可以先使用3.1版安装下边3.1版github 3.1链接站长的镜像国内可下载wget https://github.com/jeessy2/ddns-go/releases/download/v3.1.0/ddns-go_3.1.0_Linux_arm64.tar.gz # 如果下载失败换成站长的镜像 wget https://wj.puguying.cn/ddns-go_3.1.0_Linux_arm64.tar.gz tar -zxvf ddns-go_3.1.0_Linux_arm64.tar.gz sudo ./ddns-go -s install访问 你的ip:9876 进行设置接下来就可以愉快的玩耍啦如果要修改端口和配置文件目录可以输入下边的命令cd /etc/init.d nano ddns-go 修改 cmd="/root/ddns "-l" ":4002" "-f" "300" "-c" "/home/ddns/ddns.yaml""这一段代码-l监听地址-f同步间隔时间(秒)-c自定义配置文件路径然后重启ddnsservice ddns-go restart
2022年12月16日
75 阅读
0 评论
0 点赞
2022-12-14
搭建图床
这里是用的PicX 图床我用的是宝塔搭建的1.创建网站2.进去网站目录执行下边命令拉库git clone -b gh-pages https://github.com/XPoet/picx.git3.回到网站设置,设置网站目录为picx目录4.设置定时任务#!/bin/sh cd /www/wwwroot/网站目录 git pull其余的可以参考官网设置官方文档测试图床微信收款码支付宝收款码
2022年12月14日
40 阅读
0 评论
0 点赞
2022-12-04
hexo搭建以及使用Github Actions自动部署
安装HEXO依赖程序安装gittermux安装命令pkg install gitLinux (Ubuntu, Debian):sudo apt-get install git-coreLinux (Fedora, Red Hat, CentOS):sudo yum install git-core2.安装nodetermux安装命令pkg install nodejs-ltslinux安装方法参考github链接地址安装HEXOnpm install -g hexo-cli hexo init hexo cd hexo npm install接下来开始设置自动部署1.新建github仓库2.在hexo目录执行下边的命令git init // 1. 初始化项目文件夹 git add . // 2. 将所有文件添加到暂存区 git commit -m "first commit" // 3. 提交到本地仓库,双引号内是提交的备注信息 git remote add origin XXX // 4. (XXX就是你github或者码云等远程仓库的地址,git branch这个命令可以看到你所在的分支,删除某个仓库地址使用git remote rm origin) git pull // 5. 拉取远程主分支信息,首次拉取合并信息 git push -u -f origin hexo // 6. 提交到远程仓库,这个命令中的 -f 是强制推送,因为远程仓库只有初始化的文件,所以强制推送上去就行了,不加-f 会报当前分支没有远程分支,强制推送可以覆盖master,这样就完成了第一次提交的步骤)3.代码推送完成以后到github仓库新建新建.github/workflows/deployment.yml填入内容name: Deployment on: push: branches: [hexo] # only push events on source branch trigger deployment jobs: hexo-deployment: runs-on: ubuntu-latest env: TZ: Asia/Shanghai steps: - name: Checkout source uses: actions/checkout@v2 with: submodules: true - name: Setup Node.js uses: actions/setup-node@v1 with: node-version: '12.x' - name: Install dependencies & Generate static files run: | node -v npm i -g hexo-cli npm i hexo clean hexo g - name: Deploy to Github Pages env: GIT_NAME: github用户名 GIT_EMAIL: github邮箱 REPO: github.com/github用户名/博客仓库名 GH_TOKEN: ${{ secrets.HEXO_TOKEN }} # can be created or changed in the Github/Repository/Setting/Secrets/Actions run: | cd ./public && echo 自定义域名 > CNAME && git init && git add . git config --global user.name $GIT_NAME git config --global user.email $GIT_EMAIL git commit -m "Site deployed by GitHub Actions" git push --force --quiet "https://$GH_TOKEN@$REPO" master:master修改代码中的自定义域名,用户名,邮箱,博客仓库地址4.创建github token路径:github设置~开发者设置~个人访问令牌~令牌(经典)~生成新的令牌(经典)~权限选择repo记得及时复制,只显示一次5.设置GH_TOKEN返回博客仓库~仓库设置~设置秘钥6.快速写博客https://github.com/xiayikechun/xiayikechun.github.io/new/hexo/source/_posts修改成自己的仓库地址和分支名如有不足请补充
2022年12月04日
43 阅读
0 评论
0 点赞
1
2
3
4
...
6