linux常用指令(Linux common instructions)

~~~~~常用命令操作~~~~~~~~

  • 展示目录下的文件: ls
  • 返回上一级目录: cd ..
  • 返回上两级目录: cd ../..               
  • 返回home目录: cd或cd ~           
  •  返回指定目录: cd – 目录名      

~~~~~mysql命令操作~~~~~~~~

  mysql安装:https://www.cnblogs.com/wangpeng00700/p/13539856.html

  • 进入目录: cd /usr/local/mysql
  • 登录mysql [root mysql ] # ./bin/mysql -uroot -p123456
  • 启动mysql [root mysql ] # service mysqld start
  • 关闭mysql [root mysql ] # service mysqld stop
  • 解压:tar -zxvf 压缩包
  • 删除压缩包:rm -rf 压缩包
  • 重命名: mv 原文件名/ 新文件名

~~~~~tomcat命令操作~~~~~~~~

  tomcat安装: https://www.cnblogs.com/xdp-gacl/p/4097608.html

  • 进入tomcat下的bin目录启动 [root bin] # ./startup.sh
  • 查看tomcat的log情况 [root tomcat8] # cd logs
  • 查看启动日志 [root@ logs]# cat catalina.out
————————

< strong > ~ ~ ~ ~ common command operations ~ ~ ~ ~ ~ < / strong >

  • Files in the display directory: LS
  • Return to the previous Directory: CD
  • Return to the upper two directories: CD.. /
  • 返回home目录: cd或cd ~           
  • Returns the specified directory: CD – directory name

< strong > ~ ~ ~ ~ ~ MySQL command operation ~ ~ ~ ~ ~ < / strong >

  mysql安装:https://www.cnblogs.com/wangpeng00700/p/13539856.html

  • 进入目录: cd /usr/local/mysql
  • 登录mysql [root mysql ] # ./bin/mysql -uroot -p123456
  • 启动mysql [root mysql ] # service mysqld start
  • 关闭mysql [root mysql ] # service mysqld stop
  • Decompress: tar -zxvf# compressed package
  • Delete compressed package: RM -rf# compressed package
  • Rename: mv) original file name / new file name

< strong > ~ ~ ~ ~ ~ Tomcat command operation ~ ~ ~ ~ ~ < / strong >

  tomcat安装: https://www.cnblogs.com/xdp-gacl/p/4097608.html

  • 进入tomcat下的bin目录启动 [root bin] # ./startup.sh
  • 查看tomcat的log情况 [root tomcat8] # cd logs
  • 查看启动日志 [root@ logs]# cat catalina.out