您的位置:首页 > 运维架构 > Linux

阿里云服务器一键WEB环境配置---Linux学习笔记(3)

2015-06-05 08:52 901 查看
首先下载xshell Xftp_4.0.0114.1397100052软件并安装之后登陆服务器

[root@AY140418131919650032Z ~]# cd /home 登陆服务器进入home目录

输入命令:chmod -R 777 sh-1.3.0 文件夹得安装权限,没有权限的安装会失败。

[root@AY140418131919650032Z home]# cd sh-1.3.0 进入cd sh-1.3.0目录

[root@AY140418131919650032Z sh-1.3.0]# ./install.sh 执行安装命令Please select the web of nginx/apache, input 1 or 2 : 1(自选nginx/apache版本:1、2。不懂nginx/apache的可以找度娘)

Please select the nginx version of 1.0.15/1.2.5/1.4.4, input 1 or 2 or 3 : 3 (自选nginx版本:1、2、3)

Please select the php version of 5.3.18/5.4.23/5.5.7, input 1 or 2 or 3 : 3 (自选php版本:1、2、3)

Please select the mysql version of 5.1.73/5.5.35/5.6.15, input 1 or 2 or 3 : 3(自选mysql版本:1、2、3)

You select the version : 以下是选择的版本:web : nginxnginx : 1.4.4php : 5.5.7mysql : 5.6.15Enter the y or Y to continue:y 输入y或Y继续:Ywill be installed, wait … 将安装,请等待…

到此就可以泡茶喝去大约半小时左右



此界面说明已经安装完毕

输入命令 :netstat -tunpl



我们可以看到正在运行状态的服务及端口:9000端口是php进程服务,3306端口是mysql服务,80端口是nginx服务,21端口是ftp服务。

如果看到以上信息,则说明安装没有异常。这里有一点需要注意的是,如果您选择安装的是apache,则没有上面的9000端口。为什么选择安装的是apache,就没有9000端口的php进程服务呢?这是因为nginx+php集成方式与apache+php集成方式不同,感兴趣的朋友可以自己入研究一下。

怎么登陆ftp和mysql呢?在sh-1.3.0目录输入 cat account.log就能看到ftp和mysql的密码了

115.28.59.0/phpmyadminFTP:account:wwwpassword:ClD58F4ge

MySQL:account:rootpassword:8285a2dba2

网站目录:/alidata/www服务器软件目录:/alidata/server

phpwind:(输入您的ip)就可以打开网站了 (此是一键WEB默认安装网站程序) 如:http://127.0.0.1

看看是不是phpwind程序出现了。好了。所有配置都已经完成了。是不是很简单!phpmyadmin:如:http://(127.0.0.1 您的ip)/phpmyadmin就可以管理数据了,搭建WordPress建站程序时需要进入数据库新建数据库,这样WordPress建站程序才可搭建完成,要不然是搭建不了的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: