Setting Up the Environment for Aliun Server

RonWang5 years ago (2021-05-05)电子编程 COD23

阿里云服务器的环境搭建与调试

从阿里云产品发布开始便一直在使用ECM云服务器,但是之前多使用的是Windows系统,后来摸索开始挑战自己使用CentOS系统,靠着几行程序和网上各位大咖的教程和分享,竟然让使用CentOS服务器近10年了,仅仅用服务器运行写博客和小的企业网站等。下面是常用的几行程序,简单的进行说明

SH1.5.5一键安装包

是集成了Nginx/Apache,PHP,MySQL,PHP扩展的:Memache,Zend Engine / OPcache ,FTP,PHPWind,PHPmyadmin等。

首先,将SH的安装包上传到服务器指定位置,解压缩后,修改文件权限;

Bash
chmod   777   -R    Sh-1.5.5

修改路径到SH目录;

Bash
cd   sh-1.5.5

运行安装批处理文件

Bash
./install.sh

这个安装过程时间比较长,需要等待10-15分钟左右时间。

完成后,通过cat命令查看安装后的Account日志文件,找到数据库名称,对应密码,FTP名称及密码。

Bash
cat   account.log

上传相应网站到wwwroot或者alidata\www或指定路径下。

然后,在Nginx的conf.d文件下设置对应网站的 a****.conf 文件。

上传完成后,重启Nginx      

Bash
/etc/init.d/nginx    restart/start/stop/reload

MySQL数据库的复制和备份命令

Mysql数据库复制和备份

$>mysqldump -u root -h host -p dbname  > backdb.sql   整个数据库

$>mysqldump -u root -h host -h host -p dbname tbname1,tbname2  备份数据表

 >backdb.sql

备份多个数据表

$>mysqldump  -u root -h host -p --databases dbname1  dbname2 >backdb.sql

备份所有数据表

$>mysqldump  -u root -h host -p --all databases >backdb.sql

文章更新

最早使用的SH版本有1.3.0,后来有1.4.4,到1.5.5。Ver1.5.5比较少的地方可以下载到安装文件,Ver1.5.5使用后系统一直正常运行,所以好多年都不在使用安装包安装系统环境,直到最近2022年11月9日准备购买新的服务器,安装和调试LNMP环境时,发现安装完后总是有错误,PHPWind安装下载链接更新的原因,安装失败,Nginx的环境也是出错,导致安装完成后整个系统无法使用。

所以,到2022年11月最新的安装环境时,改为手动调试安装环境,具体的步骤和安装方式参见《CentOS 7.9 64位 搭建 LNMP环境》一文。

ENDS

Share with Friends:

Related Articles

CODE | Dot Matrix Display Beat Heart - Valentine's Day Gift

CODE | Dot Matrix Display Beat Heart - Valentine's Day Gift

You’re going to use the Project 19 circuit, but with a slight variation in the code to create a mult…

TurboC install and debug runtime Environment

TurboC install and debug runtime Environment

C语言调试运行环境TurboC的 上大学时学习《C语言程序设计》(第二版)作者谭浩强,大部分编程时间是在学校机房度过,每次点开桌面的TurboC图标,就开始在里面敲代码,然后保存程序Abc.…

CODE | IR Remote Control - Arduino Project 049

CODE | IR Remote Control - Arduino Project 049

Got it — you’re looking into using an infrared (IR) sensor with an IR remote on…

Resitor Ohm's Law

Resitor Ohm's Law

Ohm's law states that the current through a conductor between two points is directly&n…

CODE | LED Dot Matrix Display Beat Heart - Arduino Project 020

CODE | LED Dot Matrix Display Beat Heart - Arduino Project 020

You’re going to use the same circuit, but with a slight variation in the code to create a multi-fram…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.