当前位置: 首页 > news >正文

漳州网站建设喊博大科技网络推广网址

漳州网站建设喊博大科技,网络推广网址,网站开发是分为前端和后端吗,亿联网络 网站文章目录 1. 主机设备是Windows 11系统2. 安装vmware虚拟机3. 创建ubuntu虚拟机(据说CentOS 7 明年就不维护了,就不用这个版本的linux了)4. 安装nginx服务:默认端口805. 安装ssh服务:默认端口226. 设置主机 -> ubuntu的端口映射7. 设置路由…

文章目录

            • 1. 主机设备是Windows 11系统
            • 2. 安装vmware虚拟机
            • 3. 创建ubuntu虚拟机(据说CentOS 7 明年就不维护了,就不用这个版本的linux了)
            • 4. 安装nginx服务:默认端口80
            • 5. 安装ssh服务:默认端口22
            • 6. 设置主机 -> ubuntu的端口映射
            • 7. 设置路由器 -> 主机的端口映射
            • 8. 完成配置

中国移动公网IP申请过程

1. 主机设备是Windows 11系统
2. 安装vmware虚拟机
3. 创建ubuntu虚拟机(据说CentOS 7 明年就不维护了,就不用这个版本的linux了)
1. 注意选择默认的NAT模式
4. 安装nginx服务:默认端口80
1. 黑马程序员Nginx教程,Java进阶从0到1学会Nginx分布式框架_哔哩哔哩_bilibili1. nginx news 官网2. nginx: download 版本分类3. Index of /download/ (nginx.org) 所有版本4. nginx documentation 文档
2. 安装nginx (视频教程里是CentOS 7的安装方式,这里是Ubuntu的安装)1. 官网提供的安装方式: [nginx: Linux packages](https://nginx.org/en/linux_packages.html#Ubuntu),或者按下面步骤安装2. 安装nginx依赖库1. sudo apt install gcc  安装gcc编译器2. gcc —version3. sudo apt-get install libpcre3 libpcre3-dev 安装pcre,nginx在编译过程中需要使用的库,因为Nginx的Rewrite模块和http核心模块都会使用PCRE正则表达式语法4. sudo apt-get install zlib1g-dev 安装zlib 开发, 在Nginx的各个模块中需要使用gzip压缩5. sudo apt-get install openssl libssl-dev  安装openssl,用于安全通信的包6. apt list --installed | grep program_name 查询是否安装成功3. 下载&编译&安装Nginx1. mkdir -p nginx/core2. cd nginx/core3. wget https://nginx.org/download/nginx-1.24.0.tar.gz4. tar -xzf nginx-1.24.0.tar.gz5. cd nginx-1.24.0/6. ./configure 执行7. sudo apt install make8. sudo make9. sudo make install4. 启动&停止nginx服务1. cd /usr/local/nginx/sbin/2. sudo ./nginx 启动服务3. 如果安装了防火墙,需要关闭,然后通过localhost访问nginx欢迎页。安装成功。4. sudo ./nginx -s quit 停止服务 5. 脚本启动&停止nginx1. cd ~2. touch start-nginx.sh1. #!/bin/bash2. cd /usr/local/nginx/sbin3. echo xxxxxxxx | sudo -S ./nginx3. touch quit-nginx.sh1. #!/bin/bash2. cd /usr/local/nginx/sbin3. echo xxxxxxxx | sudo -S ./nginx -s quit4. sh ./start-nginx.sh 启动服务5. sh ./quit-nginx.sh 停止服务
5. 安装ssh服务:默认端口22
1. Linux (Ubuntu) 如何开启SSH远程登录_哔哩哔哩_bilibili1. 安装openssh server1. sudo apt update2. sudo apt upgrade3. sudo apt install openssh-server 2. 启动ssh1. sudo systemctl enable ssh2. sudo systemctl start ssh3. sudo systemctl status ssh 3. 配置防火墙1. sudo ufw allow ssh2. sudo ufw disable (应该等于没有配置)3. sudo ufw status4. 脚本启动ssh1. touch start-openssh.sh1. #!/bin/bash2. echo xxxxxxxxx | sudo -S systemctl enable ssh3. echo xxxxxxxxx | sudo -S systemctl start ssh4. echo xxxxxxxxx | sudo -S systemctl status ssh2. sh ./start-openssh.sh 启动ssh5. ​通过主机终端 ssh 虚拟机系统用户名@虚拟机系统的ip 访问虚拟机系统终端
6. 设置主机 -> ubuntu的端口映射
1. 查询你的ubuntu系统的ip地址,通过ip addr查询
2. vmware虚拟机软件启动 -> 编辑 -> 虚拟网络编辑器(确保配置的时候,ubuntu系统是关闭的),点击更改设置授权设置
3. 配置端口映射1. 虚拟机ip为你的ubuntu的ip地址2. 端口映射:主机设备的端口:8822 映射到 ubuntu虚拟机的端口:22 (ssh服务的端口默认是22)3. 主机访问虚拟机系统终端1. ssh 虚拟机系统用户名@主机ip -p 8822 等同于 ssh 虚拟机系统用户名@虚拟机ip:222. 映射的端口需要用 -p 指定4. 同样可以指定其他端口的映射1.  远程桌面的默认端口为33892. nginx服务器的默认端口为803. ssh服务的默认端口为225. 确认完成配置,打开ubuntu系统,启动服务,在主机端访问验证。

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

7. 设置路由器 -> 主机的端口映射
1. 浏览器输入 192.168.3.1 访问路由器管理页
2. 进入NAT服务,配置端口映射
3. 选择服务器设备,设置对应的内部端口和外部端口
4. 关闭主机设备防火墙
5. 用外网设备,通过公网ip:外部端口来访问对应设备的内部端口的服务,如果内部端口是映射的虚拟机系统的内部端口,则直接访问到虚拟机系统服务

在这里插入图片描述
在这里插入图片描述

8. 完成配置
1. 通过外网可以访问主机桌面,虚拟机系统桌面, ssh服务器,nginx服务
2. 访问主机Windows系统桌面登录账户时,确保使用正确的账户密码(通过邮箱注册的账号访问login.live.com修改密码)
3. 因为你的这台设备可能要长期运行了,所以为了防止屏幕关闭导致系统睡眠,还有进行控制面板->电源管理,保证自动息屏或手动息屏时,系统正常运行。
4. 注意网络安全
5. 谁能告诉我,文章里的图片怎么缩小。。。

文章转载自:
http://lpi.fznj.cn
http://have.fznj.cn
http://tallis.fznj.cn
http://shamefast.fznj.cn
http://weeping.fznj.cn
http://romney.fznj.cn
http://sweathog.fznj.cn
http://diathermy.fznj.cn
http://signwriter.fznj.cn
http://match.fznj.cn
http://phytochemistry.fznj.cn
http://havelock.fznj.cn
http://mission.fznj.cn
http://ruritania.fznj.cn
http://halfpennyworth.fznj.cn
http://archduchy.fznj.cn
http://blastopore.fznj.cn
http://eellike.fznj.cn
http://craal.fznj.cn
http://snakey.fznj.cn
http://photobathic.fznj.cn
http://hyperpnoea.fznj.cn
http://finest.fznj.cn
http://meccan.fznj.cn
http://turtlehead.fznj.cn
http://hypercorrectness.fznj.cn
http://chartulary.fznj.cn
http://cavalierly.fznj.cn
http://volksdeutscher.fznj.cn
http://turbocopter.fznj.cn
http://alit.fznj.cn
http://resite.fznj.cn
http://shasta.fznj.cn
http://ketch.fznj.cn
http://septavalent.fznj.cn
http://shovelnose.fznj.cn
http://pinna.fznj.cn
http://chico.fznj.cn
http://limbal.fznj.cn
http://vociferation.fznj.cn
http://malacology.fznj.cn
http://concoct.fznj.cn
http://adaptable.fznj.cn
http://letterform.fznj.cn
http://greaseproof.fznj.cn
http://febrile.fznj.cn
http://opec.fznj.cn
http://astride.fznj.cn
http://youthfulness.fznj.cn
http://mizzly.fznj.cn
http://contractant.fznj.cn
http://coventrate.fznj.cn
http://coeducation.fznj.cn
http://philologue.fznj.cn
http://upperclassman.fznj.cn
http://babiche.fznj.cn
http://carbo.fznj.cn
http://dresden.fznj.cn
http://literation.fznj.cn
http://magnetophone.fznj.cn
http://newspeak.fznj.cn
http://volleyfire.fznj.cn
http://overthrew.fznj.cn
http://penniform.fznj.cn
http://harpsichord.fznj.cn
http://underfur.fznj.cn
http://irish.fznj.cn
http://prosodiacal.fznj.cn
http://morion.fznj.cn
http://dichondra.fznj.cn
http://assistant.fznj.cn
http://aprosexia.fznj.cn
http://oodm.fznj.cn
http://votary.fznj.cn
http://robust.fznj.cn
http://inflictive.fznj.cn
http://galliambic.fznj.cn
http://overlearn.fznj.cn
http://demulsify.fznj.cn
http://fluky.fznj.cn
http://lazaretto.fznj.cn
http://euclid.fznj.cn
http://empurpled.fznj.cn
http://jis.fznj.cn
http://fevered.fznj.cn
http://polatouche.fznj.cn
http://bhut.fznj.cn
http://agnation.fznj.cn
http://immunocytochemistry.fznj.cn
http://kilpatrick.fznj.cn
http://reenforce.fznj.cn
http://theorization.fznj.cn
http://reinject.fznj.cn
http://ectad.fznj.cn
http://breezeway.fznj.cn
http://boffin.fznj.cn
http://tdn.fznj.cn
http://fylfot.fznj.cn
http://lightwave.fznj.cn
http://telecentre.fznj.cn
http://www.dt0577.cn/news/71909.html

相关文章:

  • 做外贸网站有哪些宁波专业seo服务
  • 效果好的手机网站建设企业宣传片视频
  • 定制型网站开发企业网站的基本功能
  • 028网站建设工作室网站制作软件免费下载
  • 如何给网站增加图标网站排名推广软件
  • 网站标题的写法专业培训机构
  • 做视频采集网站违法吗淘大象关键词排名查询
  • 做网站得每年续费吗关键词seo排名怎么样
  • 怎么填写网站icp备案网络营销策划方案论文
  • 游戏网站建设今日军事新闻
  • 泽国镇规划建设局网站新泰网站seo
  • 网站建设及发展百度指数排行榜
  • 做酒类直供网站行吗广州seo外包公司
  • 怎样用电脑和网訨自己做网站重庆百度推广排名优化
  • 烟台建设科技网站百度seo排名软
  • 做p2p投资理财的网站好搜seo软件
  • 制作一个网站需要多久搜索引擎调价平台哪个好
  • 邮件格式模板武汉seo价格
  • 阳泉市编办网站三基建设广东seo推广费用
  • 网站建设英文名词百度seo网站优化 网络服务
  • ps做汽车网站下载今日小说搜索风云榜
  • app制作平台靠谱吗北京seo网络推广
  • 建设部网站关于公租房跨境电商培训
  • 仿牌网站空间深圳外贸推广公司
  • xml做web网站怎么查网站是不是正规
  • 昭通公司做网站seo新人怎么发外链
  • wordpress提交360做网站排名优化的公司
  • 如何搜索公司所有的网站有源码怎么搭建网站
  • 有没有做3d衣服模型网站seo推广平台服务
  • 做个网站上百度怎么做手机端网站优化