首页
友情链接
关于我们
Search
1
Docker安装Chromium浏览器 - Docker里的浏览器
388 阅读
2
Windows10添加共享网络打印机出现错误0x000004f8
264 阅读
3
CPU型号后缀带K、KF、F、KS、X、G、H、U、P的含义与区别
227 阅读
4
Docker安装FRPS、FRPC
189 阅读
5
Docker安装网心云
151 阅读
系统
Windows
Linux
Docker
编程
源码
代码
软件
电脑软件
手机软件
登录
Search
Kernel
累计撰写
100
篇文章
累计收到
0
条评论
本站共
43.14 W
字
首页
栏目
系统
Windows
Linux
Docker
编程
源码
代码
软件
电脑软件
手机软件
页面
友情链接
关于我们
用户中心
登录
搜索到
28
篇与
Linux
相关的结果
2024-12-21
Debian设置关闭笔记本关盖休眠
1. 编辑配置文件vi /etc/systemd/logind.conf2. 找到下面内容#HandleLidSwitch=suspend #HandleLidSwitchExternalPower=suspend #HandleLidSwitchDocked=ignore3. 修改成下面内容HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore4. 重启服务使修改生效systemctl restart systemd-logind 或 service systemd-logind restart
2024年12月21日
42 阅读
0 评论
0 点赞
2024-12-17
Debian防火墙设置
安装防火墙:sudo apt install ufw -y卸载防火墙:sudo apt remove ufw -y开启防火墙:systemctl start ufw关闭防火墙:systemctl stop ufw重新加载防火墙:systemctl reload ufw设置开机自启动:systemctl enable ufw移除开机自启动:systemctl disable ufw放行TCP端口:sudo ufw allow <端口号>/tcp放行UDP端口:sudo ufw allow <端口号>/udp关闭TCP端口:sudo ufw delete allow <端口号>/tcp关闭UDP端口:sudo ufw delete allow <端口号>/udp查看防火墙状态:systemctl status ufw查看防火墙规则:sudo ufw status放行指定范围TCP端口:sudo ufw allow <起始端口号>:<结束端口号>/tcp放行指定范围UDP端口:sudo ufw allow <起始端口号>:<结束端口号>/udp放行IP:sudo ufw allow from 192.168.1.2放行IP段:sudo ufw allow from 192.168.1.0/24允许指定IP放行端口:sudo ufw allow from 192.168.1.2 to any port 22允许指定IP段放行端口:sudo ufw allow from 192.168.1.0/24 to any port 22禁止IP所有连接:sudo ufw deny from 192.168.1.2禁止IP连接22端口:sudo ufw deny from 192.168.1.2 to any port 22禁止IP段所有连接:sudo ufw deny from 192.168.1.0/24禁止IP段连接22端口:sudo ufw deny from 192.168.1.0/24 to any port 22
2024年12月17日
55 阅读
0 评论
0 点赞
2024-12-07
Linux服务器设置静态IP
centos# 进入配置文件存放目录 cd /etc/sysconfig/network-scripts/ # 查看所有文件 ls # 选择自己的网卡名称进行编辑 vi ifcfg-eth0 # 配置详解 BOOTPROTO=static ONBOOT=yes IPADDR=你的静态IP地址 NETMASK=你的子网掩码 GATEWAY=你的默认网关 DNS1=首选DNS服务器 DNS2=备用DNS服务器 # 重启网络 systemctl restart networkdebianifconfig <网卡名> <ip> netmask <子网掩码> # 重启网络 systemctl resatrt networking
2024年12月07日
19 阅读
0 评论
0 点赞
2024-12-04
Frpc和Frps创建服务设置开机自启动
文件存放位置:/etc/systemd/system{tabs}{tabs-pane label="Frpc.service"}创建文件 frpc.service[Unit] Description=Frpc Service After=syslog.target network.target [Service] Type=simple ExecStart=/<磁盘路径>/frpc -c /<磁盘路径>/frpc.toml Restart= always [Install] WantedBy=multi-user.target开启Frpc:systemctl start frpc设置Frpc自启动:systemctl enable frpc{/tabs-pane}{tabs-pane label="Frps.service"}创建文件 frps.service[Unit] Description=Frps Service After=syslog.target network.target [Service] Type=simple ExecStart=/<磁盘路径>/frps -c /<磁盘路径>/frps.toml Restart= always [Install] WantedBy=multi-user.target开启Frpc:systemctl start frps设置Frpc自启动:systemctl enable frps{/tabs-pane}{/tabs}
2024年12月04日
13 阅读
0 评论
0 点赞
2024-11-03
Linux宝塔重装后环境不正常,红色暂停状态
宝塔面板重新安装好之后登陆web面板apache、mysql、php都是红色暂停状态,手动无法开启。重装apache、mysql、php也无法正常开启。解决办法rm -f /www/server/panel/data/bt_lib.lock
2024年11月03日
12 阅读
0 评论
0 点赞
1
...
3
4
5
6
网站公告
×
欢迎访问本站
如果你有教程想要分享,请
联系我们