作为一名目前在研一的计算机学生,根据网上百度以及在社区学习,在学习阿里云配置时有一些心得:
第一步:收集Xshell登陆信息登陆阿里云管理中心,点击“云服务器ECS”,点击“实例”,看到服务器信息页面,点击“管理”在此信息中查看公网IP地址。
第二步:进入命令界面打开 Xshell 4 ,点击“用户身份验证”,输入主机(公网IP),‘确定’后输入用户名和密码连接。
第三步:更新并安装yum源
yum check-update 检查可更新的所有软件包
yum update 下载更新系统已经安装的软件包
yum install vsftpd -y 成功安装yum源
第四步:创建FTP用户
service vsftpd start 启动vsftpd
useradd -p /alidata/www/wwwroot -s /sbin/nologin koothon 添加账户(此用户名即为FTP用户名,会在home文件下生成以用户名命名的文件夹)
passwd koothon 修改密码(此密码即为FTP的连接密码)
确认密码:在输入密码的时候,不显示输入的内容,两次确认密码一致就可以了
chkconfig vsftpd on 设置为开机启动
第五步:连接FTP上传文件
登陆阿里云下载文件:http://market.aliyun.com/product/12-121590002-cmgj000262.html?spm=5176.7150518.1996836753.5.ngTItZ 解压后会生成一个新的名为“sh-1.4.1”文件夹;
连接FTP解压得到的“sh-1.4.1”文件夹上传到根目录下;(注意:此处我链接FTP直接用XSHELL中的Xftp图标直接一键点击链接
第六步:安装环境
cd /home/username 登陆服务器进入根目录
chmod -R 777 sh-1.4.1 文件夹得安装权限
cd sh-1.4.1 进入cd sh-1.4.1目录
./install.sh 执行安装命令
Please select the web of nginx/apache, input 1 or 2 : 1(自选nginx/apache版本:1、2);
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 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 … (环境安装中需要等待半小时左右)