在Linux下,使用“jps”可以查看用Java语言写的软件的运行情况,如果要查看GO语言写的软件的运行情况,可以使用“gops”,但这不是系统自带的,需要进行安装。

1.安装git

yum install git

2.安装golang

yum install go -y

添加环境变量(/etc/profile)

export GOPATH=/var/www/html
export PATH=$PATH:$GOPATH/bin

使环境变量生效

source /etc/profile

3.安装gops

go get -u github.com/google/gops 

4.查看正在运行的Go程序

[root@aa html]# gops
5070 2159 gops go1.8.3 /var/www/html/bin/gops

 

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-12-19
  • 2021-05-23
  • 2021-11-08
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2021-07-08
  • 2022-02-14
  • 2022-12-23
  • 2021-07-18
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案