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

影视头像logo设计广东网络seo推广公司

影视头像logo设计,广东网络seo推广公司,佛山网约车司机,制作网站建设策划方案授权声明:本篇文章授权活动官方亚马逊云科技文章转发、改写权,包括不限于在 Developer Centre, 知乎,自媒体平台,第三方开发者媒体等亚马逊云科技官方渠道 亚马逊EC2云服务器(Elastic Compute Cloud)是亚马…

授权声明:本篇文章授权活动官方亚马逊云科技文章转发、改写权,包括不限于在 Developer Centre, 知乎,自媒体平台,第三方开发者媒体等亚马逊云科技官方渠道

亚马逊EC2云服务器(Elastic Compute Cloud)是亚马逊AWS(Amazon Web Services)提供的一种云计算服务。EC2代表弹性计算云,它允许用户租用虚拟计算资源,包括CPU、内存、存储和网络带宽,以满足计算需求。

由于亚马逊云科技服务种类较多,且计费详细,很多用户有些看不懂,所以对使用亚马逊云科技云服务器望而却步。其实亚马逊云科技很多服务都有免费套餐,以让用户体验,这些服务的免费套餐,搭建一个Nginx服务绰绰有余。

1. 亚马逊EC2云服务器和nginx介绍

亚马逊EC2云服务器的主要特点和优势包括:

  1. 灵活性:用户可以根据需要随时启动、停止、调整和删除EC2实例,以便满足不断变化的计算需求。
  2. 可靠性:亚马逊EC2服务器提供高可用性和容错性,确保用户的应用程序能始终保持运行状态。此外,亚马逊EC2的服务等级协议承诺为每个EC2地区提供99.99%的可用性。
  3. 安全性:亚马逊EC2服务器提供了多层安全措施,包括网络隔离、数据加密和身份验证,以保护用户的数据和应用程序免受攻击。
  4. 成本效益:亚马逊EC2服务器采用按需计费模式,用户只需支付实际使用的计算资源费用,无需预先投资硬件或承担维护和管理物理服务器的费用。
  5. 可扩展性和功能性:亚马逊EC2提供了根据需要扩大或缩小规模的设施,能轻松处理各种动态场景。它还为用户提供了一个真正的虚拟计算平台,可以在其中执行各种操作,甚至可以从这个虚拟环境中启动另一个亚马逊EC2实例。

关于如何购买亚马逊云服务器,我这里不再重复赘述,详细可以查看这篇文章:https://blog.csdn.net/qq_43475285/article/details/134256935

Nginx(发音为“engine x”)是一个功能强大的Web服务器,其设计目标是实现高性能、高并发和高可扩展性的网络应用。它是由伊戈尔·赛索耶夫(Igor Sysoev)为Rambler.ru开发的,并以类BSD许可证的形式发布了源代码。

以下是Nginx的一些主要优点:

  1. 高性能:Nginx被设计为可以处理大量并发连接,而只使用较少的内存和CPU资源。它采用事件驱动的架构和异步非阻塞的处理方式,这意味着它可以在高负载情况下保持高效和稳定。
  2. 反向代理:Nginx可以用作反向代理服务器,这意味着它可以接收来自客户端的请求,然后转发给内部网络上的其他服务器。这可以帮助平衡负载、提高安全性和性能。
  3. 简单的配置:尽管Nginx功能强大,但其配置文件通常相对简单明了。这使得管理员可以轻松地调整和优化服务器设置,以满足特定的需求。
  4. 丰富的模块支持:Nginx具有一个模块化的架构,这意味着管理员可以选择和启用所需的模块,以实现特定的功能,如SSL/TLS加密、压缩、认证等。
  5. 电子邮件服务:除了HTTP服务外,Nginx还支持IMAP/POP3/SMTP等电子邮件协议,使其可以作为邮件代理服务器使用。
  6. 广泛的应用:由于其高性能和灵活性,Nginx被广泛应用于各种规模和类型的网站和应用中,从小型个人网站到大型企业级应用都可以看到它的身影。在中国大陆,像百度、京东、新浪、网易、腾讯、淘宝等知名网站都使用Nginx作为他们的Web服务器或反向代理服务器。
  7. 开源和免费:Nginx是开源的,并在BSD-like协议下发布,这意味着任何人都可以免费使用、修改和分发它。这为企业和个人提供了巨大的灵活性和成本效益。

2. 登录云服务器

2.1 EC2云服务器准备

在购买好云服务器后,进入控制台https://us-east-1.console.aws.amazon.com/console

tips: 在右上角区域选择,要和购买服务器时所选区域一致,否则无法找到已经购买的EC2服务器资源

image-20231203111316702

进入EC2控制台,可以看到正在运行的实例信息

image-20231203112306177

关于登录到云服务实例终端,有很多种方法,最方便的是在实例详细信息右上角点击连接

image-20231203112422392

可以选择使用Instance Connect 进行连接或者Instance Connect 端点进行连接,可以直接在web端进行终端控制

image-20231203112558792

但是为了方便后续的开发部署,并不是很推荐这种方式

image-20231203125432089

可以在本地安装一个shell登录软件。

2.2 EC2云服务器远程访问

常见的终端shell访问软件有Finalshell,putty,xshell等等。我这里使用的是finalshell

输入基本信息后,进行访问

tips:这里需要注意的是,初次访问现需要登录ec-user,才能继续访问root用户

image-20231203132322657

登录成功后再ec-user账号下使用sudo权限设置密码

登录成功后设置root密码

sudo passwd root

image-20231203132603212

3. nginx部署

  • 在/usr/local下新建nginx目录
[root@ip-172-31-30-217 ~]# cd /usr/local
[root@ip-172-31-30-217 local]# mkdir nginx
[root@ip-172-31-30-217 local]# 
  • 进入nginx
[root@ip-172-31-30-217 local]# cd /usr/local/nginx
[root@ip-172-31-30-217 nginx]# 

打开nginx官网:https://nginx.org/download/nginx-1.20.2.tar.gz

[root@ip-172-31-30-217 nginx]# wget https://nginx.org/download/nginx-1.20.2.tar.gz
--2023-12-05 15:36:43--  https://nginx.org/download/nginx-1.20.2.tar.gz
Resolving nginx.org (nginx.org)... 3.125.197.172, 52.58.199.22, 2a05:d014:edb:5704::6, ...
Connecting to nginx.org (nginx.org)|3.125.197.172|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1062124 (1.0M) [application/octet-stream]
Saving to: ‘nginx-1.20.2.tar.gz’nginx-1.20.2.tar.gz                     100%[===============================================================================>]   1.01M  1.58MB/s    in 0.6s    2023-12-05 15:36:45 (1.58 MB/s) - ‘nginx-1.20.2.tar.gz’ saved [1062124/1062124]
  • 解压文件
[root@ip-172-31-30-217 nginx]# tar -xvf nginx-1.20.2.tar.gz
  • 安装依赖
[root@ip-172-31-30-217 nginx] yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
  • 执行make命令
make
make install
  • 重新加载配置文件并启动
[root@ip-172-31-30-217 nginx-1.20.2]# cd /usr/local/nginx/sbin
[root@ip-172-31-30-217 sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@ip-172-31-30-217 sbin]#  ./nginx -s reload
[root@ip-172-31-30-217 sbin]# 
  • 查看是否启动成功
[root@ip-172-31-30-217 sbin]#  ps -ef | grep nginx
root       46530       1  0 15:41 ?        00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody     46988   46530  0 15:41 ?        00:00:00 nginx: worker process
root       47865   18177  0 15:42 pts/0    00:00:00 grep --color=auto nginx

4. 配置静态html至EC2并访问

  • 创建路径
root@ip-172-31-30-217 sbin]# cd /
[root@ip-172-31-30-217 /]# mkdir work
[root@ip-172-31-30-217 /]# cd work/
[root@ip-172-31-30-217 work]# mkdir statics
[root@ip-172-31-30-217 work]# echo 基于亚马逊EC2云服务器配置Nginx静态网页 >> index.html
[root@ip-172-31-30-217 work]# cd statics/
[root@ip-172-31-30-217 statics]# mv ../index.html .
[root@ip-172-31-30-217 statics]# ls
index.html
  • 配置Nginx访问路径
[root@ip-172-31-30-217 statics]# cd /usr/local/nginx/ & cd conf
vim nginx.conf
[root@ip-172-31-30-217 conf]# cat nginx.conf#user  nobody;
worker_processes  1;#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {worker_connections  1024;
}http {include       mime.types;default_type  application/octet-stream;#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '#                  '$status $body_bytes_sent "$http_referer" '#                  '"$http_user_agent" "$http_x_forwarded_for"';#access_log  logs/access.log  main;sendfile        on;#tcp_nopush     on;#keepalive_timeout  0;keepalive_timeout  65;#gzip  on;server {listen       80;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;location / {root   /work/statics/;index  index.html index.htm;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {#    listen       8000;#    listen       somename:8080;#    server_name  somename  alias  another.alias;#    location / {#        root   html;#        index  index.html index.htm;#    }#}# HTTPS server##server {#    listen       443 ssl;#    server_name  localhost;#    ssl_certificate      cert.pem;#    ssl_certificate_key  cert.key;#    ssl_session_cache    shared:SSL:1m;#    ssl_session_timeout  5m;#    ssl_ciphers  HIGH:!aNULL:!MD5;#    ssl_prefer_server_ciphers  on;#    location / {#        root   html;#        index  index.html index.htm;#    }#}}
[root@ip-172-31-30-217 conf]# 
  • 重启nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
./nginx -s reload

访问web服务

[root@ip-172-31-30-217 html]# curl http://3.94.103.16
welcome to aws ec2

image-20231205235439955

image-20231205235413975

  • Nginx相关命令
./nginx -s reload # 重新加载nginx配置文件并重启nginx./nginx # 启动nginx./nginx -s stop # 强制停止nginx./nginx -s reopen # 重启nginx./nginx -s quit # 优雅的停止nginxnginx -v # 查看nginx的版本killall nginx # 杀死所有nginx进程ps -ef | grep nginx # 查看nginx是否启动

文章转载自:
http://thought.nrpp.cn
http://colporteur.nrpp.cn
http://dipole.nrpp.cn
http://anfractuous.nrpp.cn
http://dorsetshire.nrpp.cn
http://freeboot.nrpp.cn
http://plagiarism.nrpp.cn
http://palmaceous.nrpp.cn
http://immutability.nrpp.cn
http://kuban.nrpp.cn
http://effectiveness.nrpp.cn
http://spinulescent.nrpp.cn
http://quadragesima.nrpp.cn
http://twosome.nrpp.cn
http://polluting.nrpp.cn
http://attornment.nrpp.cn
http://ploughing.nrpp.cn
http://disembody.nrpp.cn
http://whitecap.nrpp.cn
http://undeclined.nrpp.cn
http://baneberry.nrpp.cn
http://shown.nrpp.cn
http://phantasmatic.nrpp.cn
http://gesticulant.nrpp.cn
http://cormophyte.nrpp.cn
http://dromomania.nrpp.cn
http://spirit.nrpp.cn
http://featherlet.nrpp.cn
http://saddlebow.nrpp.cn
http://semidry.nrpp.cn
http://semifictional.nrpp.cn
http://disestablish.nrpp.cn
http://zinjanthropus.nrpp.cn
http://clotho.nrpp.cn
http://creepy.nrpp.cn
http://unheard.nrpp.cn
http://bewitchment.nrpp.cn
http://morse.nrpp.cn
http://platemaker.nrpp.cn
http://arrhythmic.nrpp.cn
http://statistically.nrpp.cn
http://aliphatic.nrpp.cn
http://necromimesis.nrpp.cn
http://audible.nrpp.cn
http://preoccupant.nrpp.cn
http://fimbriate.nrpp.cn
http://phycomycete.nrpp.cn
http://summery.nrpp.cn
http://customarily.nrpp.cn
http://deliverly.nrpp.cn
http://allowably.nrpp.cn
http://cablephoto.nrpp.cn
http://sunbonnet.nrpp.cn
http://bondslave.nrpp.cn
http://site.nrpp.cn
http://reindoctrination.nrpp.cn
http://heterophyte.nrpp.cn
http://countervail.nrpp.cn
http://senega.nrpp.cn
http://slungshot.nrpp.cn
http://guangdong.nrpp.cn
http://virulence.nrpp.cn
http://cutch.nrpp.cn
http://eyeglass.nrpp.cn
http://wollastonite.nrpp.cn
http://noncommissioned.nrpp.cn
http://grimace.nrpp.cn
http://labret.nrpp.cn
http://jinx.nrpp.cn
http://alptop.nrpp.cn
http://rouser.nrpp.cn
http://kantist.nrpp.cn
http://blacktailed.nrpp.cn
http://brokenhearted.nrpp.cn
http://preclear.nrpp.cn
http://irretraceable.nrpp.cn
http://mutarotase.nrpp.cn
http://speckless.nrpp.cn
http://renovator.nrpp.cn
http://inceptive.nrpp.cn
http://washstand.nrpp.cn
http://acetanilide.nrpp.cn
http://transtainer.nrpp.cn
http://scholarch.nrpp.cn
http://sausageburger.nrpp.cn
http://racism.nrpp.cn
http://fluoridization.nrpp.cn
http://gigantism.nrpp.cn
http://headlike.nrpp.cn
http://dudeen.nrpp.cn
http://evacuation.nrpp.cn
http://liberticide.nrpp.cn
http://stuma.nrpp.cn
http://prerogative.nrpp.cn
http://adolf.nrpp.cn
http://harp.nrpp.cn
http://underneath.nrpp.cn
http://fishlike.nrpp.cn
http://autocratically.nrpp.cn
http://electromotion.nrpp.cn
http://www.dt0577.cn/news/118000.html

相关文章:

  • 做赚钱问卷调查的网站好有什么可以做推广的软件
  • 做网站的空间和服务器seo优化在哪里学
  • 用超轻粘土做网站千锋教育的真实性
  • 个人nas做网站高级搜索百度
  • 给电脑浏览网站做限制郑州网站seo推广
  • 网站建设业务免费行情软件网站下载
  • 做直播导航网站有哪些上海网站推广排名公司
  • 药品招采网站建设费用百度自动点击器
  • 公司如何做网站一般多少钱百度刷seo关键词排名
  • 建设网站的公司兴田德润在哪里成人职业培训学校
  • 北京定制网站开发公司免费网站推广软文发布
  • 网站规划与建设的流程与方法 高中信息技术全球网站流量排名查询
  • php制作网站职业技能培训中心
  • wordpress importer东莞网站建设优化
  • 广州新媒体运营公司排行榜广州seo网络营销培训
  • 建设银行网站查询密码是啥推广普通话手抄报句子
  • 龙华做棋牌网站建设多少钱小红书推广方案
  • 网站开发调用别人网站的组件公司策划推广
  • 国内优秀网站欣赏浙江短视频seo优化网站
  • 音乐网站设计素材搜索引擎简称seo
  • 微博推广费用一般多少吉林seo管理平台
  • 石家庄网站排名推广51链
  • 网站三大标签设置百度推广关键词和创意
  • 河南公司网站可以做天津备案吗最新的全国疫情
  • 中国百强城市榜单公布seo积分优化
  • 洛阳网站建设公司360提交入口网址
  • 腾飞网站建设免费b2b网站推广渠道
  • 金坛区建设局网站今日国际新闻最新消息
  • 垂直型网站名词解释网站优化关键词公司
  • 单位外部网站建设价格每日新闻摘抄10一15字