当前位置:网站首页>疫情数据分析平台工作报告【7】阿里云相关
疫情数据分析平台工作报告【7】阿里云相关
2022-06-12 04:09:00 【m0_55675803】
具体到某家网络供应商,我们选择阿里云。
在本地编写完项目,需要将文件打包上传到云服务器,其他人才可以通过url地址来访问和浏览我们编写的程序。
大概包含如下几个方面:
阿里云服务器
安装node.js
安装Nginx服务器
安装mongoDB数据库
安装pm2进程管理工具
安装本地FTP
上线项目
注册阿里云账号
在首页选择你的登录方式,可以通过阿里旗下的第三方服务登录
注册之后进入到ECS管理控制台页面
个人实名认证
选择个人版,申请之前需要进行个人实名认证。



为了安全性,先重置实例密码
在更多中找到重置实例密码,点击设置密码。

云服务器访问密码,必须由大写字母、小写字母、数字、特殊符号中的三项构成。
重启实例
重置实例之后,点击右上角重启实例。

重启实例之后远程连接
可以使用它自带的远程连接,连接服务器。会显示停止中状态,大概需要等待30秒。
点击远程连接,系统会给你提供一个密码用于远程连接你的云服务器,该密码只出现一次,出现的时候需要记录下来。
在远程连接中用户名为:root,点击回车输入之前重置过的实例访问密码(默认输入密码的时候是不显示的,输入完成后点击回车即可)。
但是不推荐在远程连接中访问服务器,原因是:如果超过一分钟没有操作就会自动断开连接,需要重新输入远程连接密码,比较繁琐。而且在它的控制台中无法复制粘贴指令,只能通过其窗口右上角的复制命令输入来操作,比较麻烦。
可以在本地终端cmd中通过ssh命令来访问云服务器
git ssh [email protected]39.96.84.220(你的公网IP)
运行查看文件命令:
cd /
ls

安装node.js
运行yum命令在云服务器上安装Node.js
sudo yum install nodejs
安装Nginx服务器
Nginx是一款自由的、开源的、高性能的HTTP服务器和反向代理服务器;同时也是一个IMAP、POP3、SMTP代理服务器;Nginx可以作为一个HTTP服务器进行网站的发布处理,另外Nginx可以作为反向代理进行负载均衡的实现。
gcc 安装
安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装:
yum install gcc-c++

zlib 安装
zlib 库提供了很多种压缩和解压缩的方式, nginx 使用 zlib 对 http 包的内容进行 gzip ,所以需要在 Centos 上安装 zlib 库。
yum install -y zlib zlib-devel

OpenSSL 安装
OpenSSL 是一个强大的安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及 SSL 协议,并提供丰富的应用程序供测试或其它目的使用。
nginx 不仅支持 http 协议,还支持 https(即在ssl协议上传输http),所以需要在 Centos 安装 OpenSSL 库。
yum install -y openssl openssl-devel

下载nginx安装包
使用wget命令下载
wget -c https://nginx.org/download/nginx-1.10.1.tar.gz
解压
命令:
tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1
使用默认配置即可。
./configure
make
make install
查找安装路径:
whereis nginx

启动、停止、重启nginx
cd /usr/local/nginx/sbin/
./nginx
查询nginx进程:
ps aux|grep nginx


./nginx -s stop:此方式相当于先查出nginx进程id再使用kill命令强制杀掉进程。
./nginx -s quit:此方式停止步骤是待nginx进程处理任务完毕进行停止。
重启nginx
对 nginx 进行重启相当于先停止再启动,即先执行停止命令再执行启动命令。如下:
./nginx -s quit
./nginx
当 nginx的配置文件 nginx.conf 修改后,要想让配置生效需要重启 nginx,使用-s reload不用先停止 ngin x再启动 nginx 即可将配置信息在 nginx 中生效,如下:
./nginx -s reload
在rc.local增加启动代码
vi /etc/rc.local

/usr/local/nginx/sbin/nginx
按esc键退出,输入强制保存退出命令:
:wq!

边栏推荐
- What is the difference between FOB, CIF and CFR?
- 关于 国产麒麟Qt编译报错“xxx.pri has modification time xxxx s in the futrue“ 的解决方法
- Create a new table in the database. There was no problem before. Today
- Drop down menu dropdown yyds dry inventory of semantic UI
- Notes on relevant knowledge points such as original code / inverse code / complement code, size end, etc
- WiFi module scheme of the wireless Internet of things, esp32-s3 chip technology, helps the equipment to be intelligent
- Database selected 60 interview questions
- EN in Spacey_ core_ web_ SM installation problems
- Sed command
- 【C语言】变量本质分析
猜你喜欢

What are the black box test case design methods in software testing methods?

Unity脚本出现missing时的解决方法

【C语言】程序的内存四区模型

How to modify the result name of MySQL query result 1 and result 2

Network tester operation manual renix rack management

Solution to missing in unity script

数据库新建表,以前没问题的,今天
![[C language] analysis of variable essence](/img/b4/13a5800f2c960ec590c9f7480b09d0.png)
[C language] analysis of variable essence

关于 国产麒麟Qt编译报错“xxx.pri has modification time xxxx s in the futrue“ 的解决方法

SQL Safe Backup显示器和缩放字体的支持
随机推荐
R语言使用survival包的coxph函数构建cox回归模型、使用ggrisk包的ggrisk函数可视化Cox回归的风险评分图(风险得分图)、并解读风险评分图、基于LIRI数据集(基因数据集)
What is the difference between FOB, CIF and CFR?
无线物联网WiFi模块方案,ESP32-S3芯片技术,助力设备智能化
绝对定位使盒子居中显示的三种方式
How to have peace of mind? Get a new heart
What are the black box test case design methods in software testing methods?
分布式计算的八大谬论
La mise en évidence de la recherche par blocs est - elle prise en charge dans les versions ultérieures?
Hacker + marathon =? Hacker marathon?
[data recovery in North Asia] data recovery in which the logical volume of the server is changed and the file system is damaged due to system reinstallation
【C语言】变量本质分析
Message queuing overview
Cryptology Summary
Solution en cas de défaillance du script Unity
Function realization and application of trait
fastjson开启safeMode,关闭autoType,去除安全漏洞
Sequence list and linked list - primary level
EN in Spacey_ core_ web_ SM installation problems
[Yugong series] March 2022 asp Net core Middleware - cross domain
[fpga+gps receiver] detailed design introduction of dual frequency GPS receiver based on FPGA