一、下载并安装XShell软件,打开软件之后新建会话,输入主机和端口并连接
(选择的协议和连接之后输入的用户名和密码都是你租用的服务器网站提供的)
![f29ed0b72aee24698f7a04e5bdb161cd.png](https://i-blog.csdnimg.cn/blog_migrate/560fe133a46308b2689447f9940826f7.jpeg)
二、连接成功后开始配置PHP环境(命令行输入linux指令,这里是以centos系统为例)
- Apache服务器配置
安装Apache:
yum install httpd
启动Apache:
systemctl start httpd.service
设置开机启动:
systemctl enable httpd.service
查看状态:
systemctl status httpd.service
2. 关闭防火墙
关闭: