Ubuntu安装JDK以及Tomcat

本博客用什么VPS?创作不易,欢迎请咕咕喝杯咖啡☕☕☕

Ubuntu安装JDK以及Tomcat

ps -ef|grep tomcat

检查tomcat是否运行中

sudo netstat -tlpn //Ubuntu 下查看哪些端口是开放的,分别是什么进程在监听

sudo dpkg -i mysql-apt-config_0.8.16-1_all.deb

netstat -ntpl | grep 3306

mysql -u root -p

show databases;

apt-get install vsftpd

shift+g $ 最后一个光标

sudo adduser username

sudo deluser username

echo welcome to ftp > a.txt

sudo usermod -aG sudo username

是不是你用service vsftpd start 启动, 尝试下/etc/init.d/vsftpd start

whereis nginx

  • /usr/sbin/nginx //命令
  • /etc/nginx //配置文件
  • cd /var/log/nginx/ //日志
  • /usr/share/nginx //虚拟目录

netstat -ntpl | grep 80

ps aux | grep nginx 查看进程信息

sudo nginx
sudo nginx -s stop
sudo nginx -s reload

sudo nginx -c /etc/nginx/nginx.conf

sudo nginx -t

---------------
如何觉得文章内容不错,欢迎点击一下广告,支持一下咕咕😍😍😍

原创文章,作者:Roy,如若转载,请注明出处:https://iwanlab.com/ubuntu-install-tomcat/

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
Roy的头像Roy
上一篇 2023年6月15日 下午7:24
下一篇 2023年6月15日 下午7:24
   

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

瓦工性价比最高套餐!搬瓦工上线全新 MegaBox Pro 限量版套餐!$49/年(使用折扣码之后$45.6左右),购买链接:https://gao.ee/megaboxpro 优惠码:BWHCGLUKKB 2核 AMD CPU,2GB 内存,40GB 硬盘,2000GB 月流量,2.5Gbps 带宽,全新美国洛杉矶 DC1 机房,电信接入 CN2 GIA 直连,联通/移动接入 CMIN2 直连,三网优质路线。备注:上周发的BiggerBox Pro 限量版($37.32/年这款)可在后台升级到 MegaBox Pro,大家可以根据自己需要升级(直接升级貌似会贵2刀)或者再买一个。