- tomcat 与 nginx,apache的区别是什么?
Tomcat
Linux下安装Tomcat
注意:需要修改端口为8080之外的才能访问,8080访问会404,具体原因还不知。要多等会才能出现小猫页面。
Tomcat 中 catalina.out、catalina.log、localhost.log 和 access_log 的区别
Jboss
ExplodedDeployment: 把war exploded文件夹加后缀名.war(或解压war包并加后缀名.war),deployment选这个文件夹。
nginx
Ubuntu下Nginx安装
Nginx部署Vue(ubuntu环境下)
所有的配置文件都在/etc/nginx下,虚拟主机目录/var/www/html
service nginx startservice nginx stop
location /test {alias /home/marhoo_ubuntu2/www;try_files $uri $uri/ /index.html;#这句配置的意思就是,拿到一个地址,先根据地址尝试找对应文件,找不到再试探地址对应的文件夹,再找不到就返回/test/index.html}
windows
nginx -s stop fast shutdownnginx -s quit graceful shutdownnginx -s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processesnginx -s reopen re-opening log files
server { listen 80; server_name localhost; # 相对于安装目录 location / { # root html; root www; index index.html index.htm; try_files $uri $uri/ /index.html; #目录不存在则执行index.html }
