Setting Up the Environment for Aliun Server

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

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

从阿里云产品发布开始便一直在使用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

Arduino software Download

Arduino software Download

Arduino Web EditorStart coding online and save your sketches in the cloud. The most up-to-date versi…

Guide to UL Wire Specifications & Standards

Guide to UL Wire Specifications & Standards

Who is UL ?The UL enterprise is a global private safety company headquartered in Northbrook, Illinoi…

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…

CODE | LED Chase Lights - Arduino Project 005

CODE | LED Chase Lights - Arduino Project 005

You’re going to use a string of LEDs (10 in total) to make an LED chase effect, similar to that used…

Python Programming Languages Suitable for Children

Python Programming Languages Suitable for Children

Python 适合儿童的编程语言Scratch图形编程优点在于图形化拖拽的方式简化了编程的理解,而C,JAVA,JAVASCRIPT,PYTHON等编程语言相对枯燥复杂,涉及复杂编程语法,变量规则,函…

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…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.