服务器操作集合

服务器使用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

相关推荐
BreezeJiang13 小时前
从域名到 Node.js:一次云服务器请求经过了哪些层?
服务器
Julien20041 天前
调查和解决 SELinux 问题
linux·运维·服务器·网络·学习方法
2601_962074681 天前
自己编译RustDesk,并将自建ID服务器和key信息写入客户端
运维·服务器
大模型丫丫1 天前
Hermes Agent:轻量级智能体框架实战指南
大数据·运维·服务器
mooooooooooye1 天前
2026 年跨平台 SSH 客户端怎么选?Xterminal、Termius、MobaXterm 谁更合适
服务器·网络·ssh
Blockchina1 天前
Codex 实战:从一句需求到可验收的 Linux 主机巡检脚本
运维·服务器·网络
Best-Wishes1 天前
BurpSuite Pro教育版在linux系统中配置
linux·运维·服务器·网络安全·burpsuite
Java后端的Ai之路1 天前
14、Python - 责任链模式
服务器·开发语言·人工智能·python·责任链模式
从入门到退休1 天前
企业远程控制选型:向日葵SDK vs RustDesk自建,谁是更务实的选择?
运维·服务器·网络·远程工作·远程控制
祖力551 天前
进程间通信(IPC机制):信号
linux·运维·服务器·进程·进程间通信·多任务·ipc