服务器操作集合

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

相关推荐
来者皆善1 小时前
ZYNQ linux上使用 USB CDC ACM
linux·运维·服务器
缓慢更新2 小时前
企业档案管理系统迁移实录:从文件服务器到智能检索引擎
运维·服务器
Dawn-bit2 小时前
Linux磁盘分区与Swap和磁盘故障查询
linux·运维·服务器·网络·云计算
梦想三三3 小时前
LangChain Output Parser 实战:从字符串到结构化数据的完整指南
android·服务器·langchain·github·uv
netho03 小时前
影刀rpa证书题库使用教学
运维·服务器·rpa
无足鸟ICT4 小时前
【RHCA+】$[]
linux·运维·服务器
运维技术小记4 小时前
国产化环境配置 VNC 远程桌面:麒麟 V10 实战
linux·运维·服务器
爱码少年5 小时前
一条Shell命令实现文件目录服务器间快速转移
服务器·shell
laboratory agent开发5 小时前
智能体多工具串联执行中途失败,部分写入的数据如何回滚
运维·服务器·数据库
寒水馨5 小时前
Linux下载、安装protobuf-v35.1(附安装包protoc-35.1-linux-x86_64.zip)
linux·运维·服务器·google·序列化·protobuf·protoc