Setting Up the Environment for Aliun Server

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

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

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

Electric Maker and Coding Basic Tools and Knowledge

Electric Maker and Coding Basic Tools and Knowledge

电子制作|启程前的入门知识电子制作是一件充满乐趣和成就感的活动,也许在开始时会有一些挑战或者坎坷,慢慢的当你踏入电子制作的世界之后,我相信你肯定再也停不下脚步,本部分电子制作的入门知识将主要围绕:工具…

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…

CODE | SD Card Information Basic - Arduino Project 042

CODE | SD Card Information Basic - Arduino Project 042

Arduino Programming Basic -- Reading and Writing to an SD CardSD cards have non-volatile flash memor…

About microcontroller board Arduino

About microcontroller board Arduino

What is Arduino?Update time: Jan.1.2023Arduino designs, manufactures, and supports electronic device…

CODE | Piezo Knock Sensor - Arduino Project 013

CODE | Piezo Knock Sensor - Arduino Project 013

A piezo disc works when an electric current is passed over the ceramic material in the disc, causing…

Identifying Color-Band Resistors and Reading Their Values

Identifying Color-Band Resistors and Reading Their Values

色环电阻的识别与数值读取色环电阻是在电阻封装上(即电阻表面)涂上一定颜色的色环,来代表这个电阻的阻值。色环实际上是早期为了帮助人们分辨不同阻值而设定的标准。色环电阻应用还是很广泛的,如家用电器、电子仪…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.