您的位置:首页 > 编程语言 > PHP开发

搬瓦工搭建服务器,lamp环境,ftp服务

2016-12-28 11:22 435 查看
1.参考https://github.com/teddysun/lamp

用putty登录远程服务器;

如果是ssh就是:
 ssh root@地址 -p 端口

搬瓦工安装的是 CentOS

执行命令:

yum -y install wget screen unzip
wget --no-check-certificate -O lamp.zip https://github.com/teddysun/lamp/archive/master.zip unzip lamp.zip
cd lamp-master
chmod +x *.sh
screen -S lamp
./lamp.sh


就安装好了lamp服务器

2.安装ftp服务

rpm -qa|grep vsftp

yum install vsftpd -y

启动服务

service vsftpd start

添加ftp用户

adduser test

passwd test

能用ftp协议登录了,但是切换到/data/www/default目录下,还是不能上传文件,于是

chmod -R 777 /data/www/default,就可以了。
https://github.com/teddysun/lamp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: