服务器操作集合

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

相关推荐
power 雀儿40 分钟前
集群聊天服务器---MySQL数据库的建立
服务器·数据库·mysql
BD_Marathon3 小时前
Ubuntu:Mysql服务器
服务器·mysql·ubuntu
0wioiw05 小时前
Ubuntu基础(监控重启和查找程序)
linux·服务器·ubuntu
艾希逐月5 小时前
TCP数据的发送和接收
服务器·网络·tcp/ip
胡斌附体6 小时前
linux测试端口是否可被外部访问
linux·运维·服务器·python·测试·端口测试·临时服务器
大锦终6 小时前
【Linux】常用基本指令
linux·运维·服务器·centos
知北游天6 小时前
Linux:多线程---深入互斥&&浅谈同步
linux·运维·服务器
only-lucky7 小时前
C语言socket编程-补充
服务器·c语言·php
码农101号7 小时前
Linux中容器文件操作和数据卷使用以及目录挂载
linux·运维·服务器
程序员弘羽8 小时前
Linux进程管理:从基础到实战
linux·运维·服务器