上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 1.快速搭建网站 from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return "this is myweb" @app.route('/index') def index(): ret 阅读全文
posted @ 2025-07-02 23:26 铿锵有力自信且坚定 阅读(27) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2025-07-01 14:43 铿锵有力自信且坚定 阅读(2) 评论(0) 推荐(0)
摘要: #!/bin/bash echo -e [`date +"%Y-%m-%d %H:%M:%S"`] start #system time time=`date +%y-%m-%d` #host IP host="127.0.0.1" #database backup user user="root" 阅读全文
posted @ 2025-06-30 11:04 铿锵有力自信且坚定 阅读(10) 评论(0) 推荐(0)
摘要: 一. 介绍 配置说明连接: 二.简单使用 1.配置个http代理 ①配置文件 { "inbounds": [ { "tag": "http-in", "port": 8123, "listen": "::", "protocol": "http", "settings": { "timeout": 阅读全文
posted @ 2025-06-27 11:49 铿锵有力自信且坚定 阅读(34) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2025-06-17 21:15 铿锵有力自信且坚定 阅读(1) 评论(0) 推荐(0)
摘要: 一.使用防火墙nftables做转发 1. 开启转发功能 sudo sysctl -w net.ipv4.ip_forward=1 2. 永久开启转发功能 vim /etc/sysctl.conf 添加 net.ipv4.ip_forward=1 3.编辑nftables脚本进行转发 编辑配置文件/ 阅读全文
posted @ 2025-06-04 21:03 铿锵有力自信且坚定 阅读(283) 评论(0) 推荐(0)
摘要: 一.安装 1.镜像下载地址 https://old-releases.ubuntu.com/releases/18.04.4/?_ga=2.44113060.1243545826.1617173008-2055924693.1608557140 2.下载xrdp遇到的问题 sudo -E apt i 阅读全文
posted @ 2025-05-28 21:05 铿锵有力自信且坚定 阅读(163) 评论(0) 推荐(0)
摘要: 一.介绍 涉及文件:/etc/sudoers -- 不可通过vim修改,它用于定义哪些用户或用户组可以以超级用户(root)的权限执行特定的命令 涉及命令:visudo -- 用来修改/etc/sudoers文件 涉及用户组: wheel -- 添加到这个组的用户可以使用sudo,需要输入密码 [r 阅读全文
posted @ 2025-05-28 20:57 铿锵有力自信且坚定 阅读(290) 评论(0) 推荐(0)
摘要: 一.CentOS7设置笔记本合盖不休眠 1.修改配置文件 vim /etc/systemd/logind.conf 将HandleLidSwitch后面的suspend改为lock HandleLidSwitch=lock 2.重启服务生效 systemctl restart systemd-log 阅读全文
posted @ 2025-05-15 22:11 铿锵有力自信且坚定 阅读(167) 评论(0) 推荐(0)
摘要: 1.初始化好linux:关闭防火墙selinux、配置阿里云yum sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config systemctl stop firewalld && systemctl disable fir 阅读全文
posted @ 2025-05-15 20:43 铿锵有力自信且坚定 阅读(27) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页