UBUNTU安装NGINX

apt-get update
apt-get install nginx
vi /etc/nginx/sites-available/default

修改文本内容:
root /var/www/test;
server_name localhost test.com;

service nginx restart

你可能感兴趣的:(UBUNTU安装NGINX)