Setting Up the Environment for Aliun Server

RonWang6 years ago (2021-05-05)电子编程 COD274

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

从阿里云产品发布开始便一直在使用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 | LED Interactive Traffic Lights - Arduino Project 004

CODE | LED Interactive Traffic Lights - Arduino Project 004

This time you are going to extend the previous project to include a set of pedestrian lights and a p…

CODE | Shift Register 8-Bit Binary Counter - Arduino Project 017

CODE | Shift Register 8-Bit Binary Counter - Arduino Project 017

In this project, you’re going to use additional ICs (Integrated Circuits) in the form of shift regis…

Resistor-Electrical Components

Resistor-Electrical Components

A resistor is a passive two-terminal electrical component that implements electrical resistance as a…

Electronic color code

Electronic color code

An electronic color code or is used to indicate the values or ratings of electronic components, usua…

CODE | Dual Motor Driver L298N - Arduino Project 030A

CODE | Dual Motor Driver L298N - Arduino Project 030A

L298N Dual Motor Driver Project Description The L298N Motor Driver is a controller that uses an…

CentOS Server PHP 7.4+ Installation

CentOS Server PHP 7.4+ Installation

Centos服务器PHP7.4+安装IntroductionA LEMP software stack is a group of open source software that is typic…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.