1、切换root

sudo su root

 

2、设置权限

sudo chattr -i test.sh

 

3、目录下所有文件授权

chmod -R 777 apache-tomcat-9.0.6

 

4、查看mysql状态

service mysql status

 

5、启动mysql

 

service mysql start

 

7、启动tomcat

进入tomcat 的bin 目录下,执行

./startsup.sh

 

8、关闭tomcat

./shutdown.sh

 

9、查看tomcat 启动状态

cd /usr/tomcat/apache-tomcat-7.0.82/logs/

 

10、执行一下命令实时查看tomcat运行日志

tail -f catalina.out

 

11、返回上一级目录 :

cd ..

 12、查看所有目录与文件

ls

 

相关文章:

  • 2021-12-30
  • 2021-08-19
  • 2021-10-22
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-11-25
  • 2021-05-25
  • 2022-12-23
  • 2022-02-07
  • 2022-02-04
相关资源
相似解决方案