yjiajia

1、程序服务运行/停止/状态查看

service 程序服务名 start/stop/status          开启/关闭/查看程序服务

service --status-all                         查看所有启动的服务

 

2、查看程序进程ps

ps –ef|grep 程序名

ps aux |grep 程序名

 

3、查看端口占用

1、lsof -i:端口号

2、netstat -tunlp|grep 端口号

3 netstat -lanp | grep 27017

  netstat -ano | grep 8500

  netstat -ntpl | grep vsftpd 查看服务监听端口

 

4、设置程序开机启动

ll /etc/rc.d/

cd /etc/init.d/

chkconfig --add xxx (程序服务名:例如httpd)

systemctl enable xxx(例如firewalld)

 

5、docker使用

service docker start/stop/status/  查看docker服务

docker ps 查看启动容器运行情况

docker ps -a 查看所有容器运行情况

docker images 查看docker镜像

docker start/stop/rm test 启动/停止/删除镜像

docker rmi 镜像名 REPOSITORY:TAG (tag为latest可省略)

docker stats 容器名 查看容器的运行状态

docker logs 容器名  查看容器的日志

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2022-01-27
  • 2021-04-29
  • 2021-12-31
  • 2022-12-23
  • 2021-07-03
猜你喜欢
  • 2021-11-23
  • 2021-11-02
  • 2021-11-02
  • 2021-11-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-02
相关资源
相似解决方案