1、通过lsof -i:8080查看8080端口使用情况。

[root@12x]# lsof -i:8080


COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
ruby    1279  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)
ruby    1669  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)
ruby    1672  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)
ruby    1675  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)
ruby    1678  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)
ruby    1681  git   15u  IPv4  11386      0t0  TCP localhost:webcache (LISTEN)

2、通过PS查看进程信息:

[root@12x]# ps -ef|grep 1279
git       1279     1  0 Sep03 ?        00:00:17 unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                              
git       1669  1279  0 Sep03 ?        00:00:00 unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                           
git       1672  1279  0 Sep03 ?        00:00:00 unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                           
git       1675  1279  0 Sep03 ?        00:00:00 unicorn worker[2] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                           
git       1678  1279  0 Sep03 ?        00:00:00 unicorn worker[3] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                           
git       1681  1279  0 Sep03 ?        00:00:00 unicorn worker[4] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru                                           
root      8664  6719  0 09:39 pts/1    00:00:00 grep 1279


设置查看日志用户的权限对/home/jyapp/只读权限,则使用命令
useradd jycheck;echo jycheck123|passwd --stdin jycheck


setfacl -m u:jycheck:rx  /home/jyapp


赋予只读权限




Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐