服务器操作集合

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

相关推荐
真好啊又活了一天11 小时前
服务器和虚机配置IPV6
运维·服务器·github
墨痕诉清风12 小时前
SSRF漏洞实战记录+OSS桶命令执行+MCP漏洞
linux·服务器·数据库
布莱克60513 小时前
Swift 常量详解:从 let 到编译期优化
服务器·开发语言·ssh·swift·常量·let
测试界的小码农15 小时前
【Linux 命令实战(04):文件内容查看,掌握 cat、less、head、tail】
linux·服务器·less
每月一号准时摆烂15 小时前
服务器运维笔记(一)——使用shell编写实时查看BMC功率的脚本
运维·服务器·笔记
一条破秋裤16 小时前
【1112】Linux中断【整理】
linux·运维·服务器
lzx_0021 天前
Linux 进程(三) 从进程状态到僵尸进程、孤儿进程
linux·服务器
星恒随风2 天前
MySQL 从零入门(四):表的增删改查与基础查询详解
linux·服务器·数据库·笔记·mysql
进击的荆棘2 天前
Linux系统——线程同步与互斥之线程池和安全
linux·运维·服务器·安全·单例模式·线程
蜗牛一步步往上爬2 天前
第六章 BMC常用的调试工具
服务器