首页
关于
友链
便签
统计
Search
1
QQ闪照如何查看 2022.7.29
398 阅读
2
Cloudreve挂载本机存储目录
343 阅读
3
Debian10 升级内核5.10
323 阅读
4
docker映射端口部署wikihost Looking-glass Server (ALS)
225 阅读
5
使用Docker部署HTML5 - Speedtest
163 阅读
默认分类
服务器
生活有感
哲思
诗词
AI
Linux
MySQL
Photoshop
Web建站
Cloudreve
Typecho
编程
Java
登录
Search
标签搜索
Linux
windows
web建站
win10
nginx
五哲
debian
docker
vps
CF
iptables
端口
apt
yum
java
自动更新
jia
HTML
内核
CF Workers
史沛思
累计撰写
66
篇文章
累计收到
54
条评论
首页
栏目
默认分类
服务器
生活有感
哲思
诗词
AI
Linux
MySQL
Photoshop
Web建站
Cloudreve
Typecho
编程
Java
页面
关于
友链
便签
统计
搜索到
13
篇与
的结果
2023-11-16
宝塔 Nginx 反代网站出现 502 Bad Gateway的解决办法
遇见宝塔Nginx反代网站报错 502 Bad Gateway时不要慌在配置文件proxy_set_header REMOTE-HOST $remote_addr;的下一行加入proxy_ssl_server_name on;重启niginx即可1
2023年11月16日
54 阅读
1 评论
1 点赞
2023-11-13
正向代理与反向代理
正向代理服务端不知道真正的客户端,反向代理客户端不知道真正的服务端正向代理,替客户端说话;反向代理,替服务端说话。
2023年11月13日
11 阅读
0 评论
0 点赞
2023-09-26
WSL的使用与基础命令
一、安装WSL和Debian并切换至WSL2在“启用或关闭Windows功能”中启用以下两个选项:Windows虚拟机平台、适用于Linux的Windows子系统。在Windows应用商店中选择需要安装的Linux发行版。(我选择Debian)打开Debian,完成安装。(先安装Linux再转换WSL2)在PowerShell中运行以下指令,将WSL1转换成WSL2。wsl --set-version Debian 2 wsl --set-default-version 2二、执行默认配置并安装ca-certificatesapt-get update apt-get install ca-certificates三、切换默认源为清华镜像源编辑文件vim /etc/apt/sources.list清华源deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free # deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free #deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free # deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free # deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free四、替换完整版vim编辑器apt-get remove vim-common apt-get install vim查看wsl版本、wsl -l -v查看已安装的wslwsl --list卸载已安装的wslwsl --unregister Debian查看可安装的wslwsl --list --online
2023年09月26日
39 阅读
0 评论
0 点赞
2023-09-20
Linux学习2023-7-my666
Linux操作—CentOS7用户&用户组操作useradd user1 ##创建用户1 passwd user1 ##修改1密码 groupadd Group23 ##创建用户组 usermod -g Group23 user1 ##将user1添加到Group23用户组中 tail -3 /etc/passwd ##验证用户 id user1 ##验证用户组 tail -3 /etc/shadow ##验证密码密文主机名selinux防火墙操作vi /etc/hostname ##修改主机名为姓名缩写user1 vi /etc/selinux/config ##关闭SELINUX=disabled init 6 ##重启主机 reboot getenforce ##验证是否关闭selinux systemctl stop firewalld ##停止防火墙 systemctl disable firewalld ##关闭防火墙 systemctl status firewalld ##验证防火墙状态文件目录操作touch user.exe ##创建文件user.exe chmod 755 user.exe ##修改权限755 ll ##查询验证权限 mkdir userexe ##创建目录userexe chmod 764 userexe ##修改权限764 chmod o+t userexe ##添加t位() ll ##查询验证权限复制压缩操作cp user.exe userexe/ ##复制user.exe到userexe目录中 ll userexe/ ##验证userexe目录是否存在user.exe tar cvf userexe.tar.gz userexe ##打包压缩userexe目录 ll ##验证压缩文件 #### web操作 mkdir space586 cd space586/ mkdir img js css touch index.html vim index.html cat index.html 挂载ISOmkdir /media/CentOS ls /media mount /dev/cdrom /media/CentOS ls /media/CentOS修改repo文件cd /etc/yum.repos.d/ mkdir bak mv *.* bak cp bak/CentOS-Media.repo CentOS-Media.repo vi CentOS-Media.repo 修改 0,1 dd删除17,18 :wq保存退出。rpm -qa | grep curl ##查询是否安装curl rpm -qa | grep httpd ##查询是否安装httpd yum install curl httpd find / -name httpd.conf vim /etc/httpd/conf/httpd.conf systemctl restart httpd curl 127.0.0.1:8004安装数据库MariaDByum info mariadb yum install mariadb-server yum clean all yum makecache systemctl start mariadb netstat -ano |grep 3306 mysql_secure_installation #初始化配置 mysql & mariadb不能共存数据库操作mysql -u root -p show databases; create database space586; use soft45; create table 586(id int primary key,name varchar(30) not null); desc 586; insert into 586 values(id1,'name1'); select * from space586;网络配置vi /etc/sysconfig/network-scripts/ifcfg-ens33第4行,static第15行,yes添加:IPADDR=192.168.0.101 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 cp hz/index.html /var/www/html/index.html
2023年09月20日
16 阅读
0 评论
0 点赞
2023-09-20
VMware创建Linux虚拟机卡在gnome-initial-setup解决
::(怒) 好几次了,终于想起来,前几天在网络和共享中心禁用了vnet。打开重新启动虚拟机解决!
2023年09月20日
6 阅读
0 评论
0 点赞
2022-11-21
Debian10 升级内核5.10
首先添加Debian官方源echo 'deb http://deb.debian.org/debian buster-backports main' |\ sudo tee -a /etc/apt/sources.list.d/backports.list 更新源apt update查找内核版本apt search linux-image'bpo' 表示 backports'rt' 表示 realtime'dbg' 表示 debugging安装常规版本sudo apt install linux-image-5.10.0-0.bpo.7-amd64 sudo apt install linux-headers-5.10.0-0.bpo.7-amd64 sudo reboot开机后 apt autoreemove参考
2022年11月21日
323 阅读
0 评论
0 点赞
2022-11-21
docker映射端口部署wikihost Looking-glass Server (ALS)
闲来无事想部署下ALS玩玩,但是默认是指定80端口,找了下百度,docker端口偏移可以通过下面部署参数实现指定8800端口docker run -d --restart always \ --name lookingglass \ -e HTTP_PORT=8800 \ -p 8800:8800 \ wikihostinc/looking-glass-server原创文章 开源地址
2022年11月21日
225 阅读
0 评论
0 点赞
2022-11-09
LINUX常用命令
LINUX基础sudo -i ##切换root apt update ##检查包更新 apt upgrade ##执行包更新 ss -tulpn | grep 53 ##查看端口占用 yum install wget ##yum安装wget apt-get install wget ##apt安装wget apt --fix-broken install apt-get install iperf3 ##apt安装iperf3 iperf3 -s ##开启服务端 iperf3 -c 22.33.44.55 ##客户端默认连接 iperf3 -s -p 114514 ##服务器指定端口114514 iperf3 -c 23.106.80.18 -p 35009 -t 50 ##客户端指定连接114514端口 50连接次? apt --fix-broken install apt-get install curl ##安装curl #### 测试端口连通性 curl ip:port wget ip:port telnet ip port ssh -v -p port username@ip ssh -v -p 22
[email protected]
-v 调试模式(会打印日志). -p 指定端口 username:远程主机的登录用户 ip:远程主机 ## 安装wget:yum -y install wget 换源: wget git.io/superupdate.sh 站长工具:http://ping.chinaz.com/ 编辑hosts:vi /etc/hosts apt-get install lsof ##安装lsof命令 lsof -i:443 ##利用lsof命令查看端口占用的进程号 kill -9 8888 ##此处的8888为进程PID号防火墙firewallfirewall-cmd --zone=public --add-port=114514/tcp --permanent ##开启114514端口 firewall-cmd --zone=public --permanent --add-service=http ##开启80端口 firewall-cmd --zone=public --permanent --add-service=https ##开启443端口 firewall-cmd --reload ##重载配置 systemctl stop firewalld.service ##停止firewalld服务stop/start/retart systemctl disable firewalld.service ##关闭firewalld服务disable/enableiptablesapt-get install iptables ##安装iptables iptables -I INPUT -p tcp --dport 114514 -j ACCEPT ##放行114514端口 iptables-save ##保存防火墙规则,重启失效 apt-get install iptables-persistent ##安装iptables-persistent netfilter-persistent save ##保存规则持续生效 netfilter-persistent reload ##重载配置 iptables -L ##查看防火墙规则Dockerdocker container ls ##查看所有正在运行的 docker docker logs -f dockername ##查看选定 docker 的 log docker rm -f dockername ##删除指定 docker docker system df ##查看容器使用的磁盘空间 docker system prune -a ##对 docker 进行全面垃圾回收 docker logs --tail=100 ss-rust ##docker查看100行日志 service docker restart ##重启docker服务
2022年11月09日
71 阅读
0 评论
0 点赞
1
2