#Cloud# 阿里云服务器部署

共 2727字,需浏览 6分钟

 ·

2024-06-12 23:36

 文章所涉及内容更多来自网络,在此声明,并感谢知识的贡献者!


Centos 修改密码

Centos7 修改root密码
linux怎么更改root密码-百度经验 (baidu.com)
https://jingyan.baidu.com/article/f3ad7d0f1dbc7b09c2345b76.html


Centos 环境准备

Python版本确认
python -v

安装下载工具  wget
 

yum -y install wget
yum -y install setup
yum -y install perl

安装python 依赖包
 

yum -y group install "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
yum -y install python-devel

备份python旧版本
 

mv /bin/python /bin/python.bak
安装Python 3.7.6
进行python版本备份
mv /bin/python /bin/python.bak
Python 3 安装
下载python安装包
wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tar.xz
解压缩
tar -xvJf Python-3.7.6.tar.xz
配置
cd Python-3.7.6
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl
安装
make && make install
创建软连接
ln -s /usr/local/python3/bin/python3 /usr/bin/python
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip
查看版本
python -V
python2 -V

修改yum配置
 

把文件头部的#!/usr/bin/python改成#!/usr/bin/python2保存退出即可
vi /usr/bin/yum
vi /usr/libexec/urlgrabber-ext-down

更新pip
 

pip install –upgrade pip

创建项目文件夹
 

创建文件夹
mkdir -p /home/project
修改文件夹权限
chmod -R 777 /home/project


阿里云服务器设置

阿里云设置访问端口
阿里云ECS服务器设置端口(允许访问设置) - 我需要一杯水 - 博客园 (cnblogs.com)
https://www.cnblogs.com/tanjiyuan/p/11002988.html#:~:text=%E9%98%BF%E9%87%8C%E4%BA%91ECS%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AE%BE%E7%BD%AE%E7%AB%AF%E5%8F%A3%EF%BC%88%E5%85%81%E8%AE%B8%E8%AE%BF%E9%97%AE%E8%AE%BE%E7%BD%AE%EF%BC%89%201.%E7%99%BB%E5%BD%95%E9%98%BF%E9%87%8C%E4%BA%91%E6%89%BE%E5%88%B0%E5%AF%B9%E5%BA%94%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%8C%89%E7%85%A7%E5%A6%82%E4%B8%8B%E7%AE%AD%E5%A4%B4%E6%8C%87%E7%A4%BA%EF%BC%9A,2.%E7%82%B9%E5%87%BB%E2%80%9C%E5%AE%89%E5%85%A8%E7%BB%84%E9%85%8D%E7%BD%AE%E2%80%9D%E5%90%8E%E8%BF%9B%E5%85%A5%E5%88%B0%E5%A6%82%E4%B8%8B%E7%95%8C%E9%9D%A2%EF%BC%8C%E7%82%B9%E5%87%BB%E2%80%9C%E9%85%8D%E7%BD%AE%E8%A7%84%E5%88%99%E2%80%9D%E8%BF%9B%E5%85%A5%E8%AF%A6%E6%83%85%E9%85%8D%E7%BD%AE%E7%95%8C%E9%9D%A2%E3%80%82%203.%E7%82%B9%E5%87%BB%E2%80%9C%E4%BF%AE%E6%94%B9%E2%80%9D%E5%8F%AF%E5%AF%B9%E7%89%B9%E5%AE%9A%E7%9A%84%E7%AB%AF%E5%8F%A3%E8%BF%9B%E8%A1%8C%E8%AE%BF%E9%97%AE%E9%85%8D%E7%BD%AE%EF%BC%8C%E5%A6%82%E4%B8%8B%E5%9B%BE%EF%BC%9A
 
阿里云数据库设置
如何连接RDS数据库 (aliyun.com)
https://help.aliyun.com/knowledge_detail/41843.html?spm=5176.21213303.J_6704733920.12.88043edaEh56Un&scm=20140722.S_help%40%40%E7%9F%A5%E8%AF%86%E7%82%B9%40%4041843.S_0%2Bos.ID_41843-RL_%E8%BF%9E%E6%8E%A5-OR_helpmain-V_2-P0_1


SSL证书部署
(17条消息) 阿里云服务器nginx配置https证书_sskk1118的博客-CSDN博客_阿里云nginx配置https
https://blog.csdn.net/sskk1118/article/details/105482976


浏览 15
点赞
评论
收藏
分享

手机扫一扫分享

分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

分享
举报