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
   

相关推荐

发表回复

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