需求:
- 安装nginx软件包; 配置文件名为ispweb.conf,放置在/etc/nginx/conf.d/目录下;
- 网站根目录为/mut/crypt(目录不存在需创建); 启用FastCGI功能,让nginx能够解析php请求;
- index.php内容使用Welcome to 2020 Computer Network Application contest!
安装nginx
root@IspSrv: apt-get install -y nginx
创建配置文件
root@IspSrv: vim /etc/nginx/conf.d/ispweb.conf
不知道啥原因这里修改不了根目录,只能在默认配置里修改
root@IspSrv:/etc/nginx vim sites-enabled/default
安装php:
root@IspSrv: apt-get -y install php7.3*