服务器操作集合

服务器使用PC作为代理访问外网

1、PC上启动代理,比如nginx

下载nginx:http://nginx.org/en/download.html

修改配置文件,在conf下:

c 复制代码
http {
    include       mime.types;
    default_type  application/octet-stream;
   
    sendfile        on;
    keepalive_timeout  65;


    server {
        listen       888;
        server_name  localhost;

        location / {    
            proxy_pass http://archive.ubuntu.com;        
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
 }

双击启动nginx

2、启动ssh

c 复制代码
 ssh -R localhost:xxx1:localhost:xxx2 username@服务器IP

参数分别是:服务器端口:PC主机:PC端口

连上后设置代理:

c 复制代码
export {http,https}_proxy='localhost:xxx1'

这时总体拓扑为:

ipmi修改BIOS启动参数

先关闭电源 ipmitool -H BMC口IP -U userName -P password chassis power soft

然后查看是否关闭:ipmitool -I lanplus -H BMC口IP -U userName -P password power status

在一个终端先连上启动界面:ipmitool -I lanplus -H BMC口IP -U userName -P password sol activate

在另一个终端启动:ipmitool -I lanplus -H BMC口IP -U userName -P password power on

然后在启动界面按F4

相关推荐
Web极客码18 分钟前
抹平首包开销:我用 Claude 调优 Nginx 的 Brotli 与 Gzip 动态压缩,平衡 CPU 与网络吞吐
服务器·agent 工作流·agent 图
云杂项1 小时前
tmux指南:安装、配置与高效使用(Ubuntu上)
linux·服务器·ubuntu
泡海椒2 小时前
趋势分析报表:jquick-pdf折线图PDF生成实战
java·大数据·运维·服务器·前端·pdf
qq_394562002 小时前
【在Linux上升级nginx】
linux·服务器·nginx
丸子君君2 小时前
【以麒麟服务器时间为准,定时请求时间同步】
运维·服务器·单片机
Tairitsu_H2 小时前
[Linux系统] 基础IO核心 | 系统接口 | 文件描述符 | 重定向
linux·服务器·文件操作
事已至此先睡覺吧3 小时前
(三)Linux 基础指令(二):基础常用的一些指令
linux·运维·服务器
不会写DN3 小时前
Go日志库工程选型与逃逸分析评测报告
java·服务器·golang
鬼手点金4 小时前
Claude Code示范案例-常用快捷命令
java·服务器·前端·计算机视觉·前向传播
阿钱真强道4 小时前
12 嵌入式操作系统 | UDP 服务器编程
服务器·网络协议·udp