1.查看云服务器是否安装Apache
ps -ef | grep httpd
2.更新
sudo apt update
3.安装Apache
sudo apt-get install apache2
4.重新启动服务器
service apache restart
查看apache状态
service apache status
此时apache就已经安装成功。
如果还不可以上传,赋予权限(但是不推荐这样)。
1.查看云服务器是否安装Apache
ps -ef | grep httpd
2.更新
sudo apt update
3.安装Apache
sudo apt-get install apache2
4.重新启动服务器
service apache restart
查看apache状态
service apache status
此时apache就已经安装成功。
如果还不可以上传,赋予权限(但是不推荐这样)。