一、桥接配置

centos设置  编辑-》虚拟网络编辑器-》桥接模式-》还原默认设置

centos 桥接配置   设置网络代理  lnmp搭建

虚拟机-》设置-》网络适配器-》桥接

centos 桥接配置   设置网络代理  lnmp搭建

cd /etc/sysconfig/network-scripts/

备份一下:

cp ifcfg-ens33 ifcfg-ens33.bak

修改:

vi ifcfg-ens33

centos 桥接配置   设置网络代理  lnmp搭建

红色修改、蓝色添加

 service network restart 

重启网卡

 

二、 设置网络代理

vi /etc/profile

最后加入

export http_proxy="http://192.168.0.190:59885/"
export https_proxy="http://192.168.0.190:59885/"
export ftp_proxy=$http_proxy
export curl="curl -x 192.168.0.190:59885"

 

参考:https://blog.csdn.net/qianggezhishen/article/details/49930301

 

主机适配器-》IPv4-》修改

centos 桥接配置   设置网络代理  lnmp搭建

 

蓝灯修改配置:

先关掉蓝灯 -》修改 文件

 centos 桥接配置   设置网络代理  lnmp搭建

 

三、lnmp搭建

 https://www.jianshu.com/p/02baa54283ba

然后关闭防火墙:

systemctl stop firewalld.service
systemctl disable firewalld.service

 

相关文章:

  • 2021-09-12
  • 2021-11-05
  • 2021-10-13
  • 2021-08-13
  • 2021-07-02
  • 2021-06-29
  • 2022-03-06
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-12-31
相关资源
相似解决方案