赞
踩
cd /usr/local/nginx/sbin,启动nginx服务器
cd /nginx/conf
重启nginx web服务器
安装nginx
cd /nginx执行./configure生成nginx文件
解压nginx压缩包
也可以解压到/usr/local
下载压缩包
安装nginx前需要依赖
阿里服务器
公网ip需要购买
这个密码,finalshell连接服务器的时候要用到
ssh连接
cd /nginx/conf
vim nginx.conf
也可以下载node,不用nginx
npm i lite-server -g
用lite-server启动的项目端口是3000,要添加安全组,如下
有个缺点就是lite-server命令行窗口一关闭服务就停止,所以建议用nginx服务
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。