linux_basic_admin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_basic_admin [2019/10/18 20:04] – external edit 127.0.0.1linux_basic_admin [2020/08/28 15:35] (current) andonovj
Line 52: Line 52:
 pcs cluster enable --all pcs cluster enable --all
 </sxh> </sxh>
 +
 +=====List Services=====
 +You can list services in Linux as follows:
 +
 +<Code:bash|List services>
 +[root@tain-cx-uatdb1 ~]# systemctl list-unit-files
 +UNIT FILE                                     STATE
 +proc-sys-fs-binfmt_misc.automount             static
 +dev-hugepages.mount                           static
 +dev-mqueue.mount                              static
 +proc-fs-nfsd.mount                            static
 +proc-sys-fs-binfmt_misc.mount                 static
 +sys-fs-fuse-connections.mount                 static
 +sys-kernel-config.mount                       static
 +sys-kernel-debug.mount                        static
 +tmp.mount                                     disabled
 +var-lib-nfs-rpc_pipefs.mount                  static
 +brandbot.path                                 enabled
 +systemd-ask-password-console.path             static
 +systemd-ask-password-plymouth.path            static
 +systemd-ask-password-wall.path                static
 +session-1.scope                               static
 +session-29975.scope                           static
 +session-29979.scope                           static
 +acpid.service                                 enabled
 +arp-ethers.service                            disabled
 +auditd.service                                enabled
 +auth-rpcgss-module.service                    static
 +autofs.service                                disabled
 +</Code>
 +
 +====Check process connections====
 +We can check if a process is making connection from outside as follows:
 +
 +<Code:bash|Check process connections>
 +[root@ag-se-tlcasdb1 ~]#  lsof -i -a -p 4970
 +COMMAND  PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
 +oracle  4970 oracle   16u  IPv6 37827976      0t0  TCP ag-se-tlcasdb1.net.tain.com:ncube-lm->172.25.2.12:43612 (ESTABLISHED)
 +</Code>
 +
 +As we can see, that is very useful for oracle processes. When the connection HAS to create process also ON the local server.
  • linux_basic_admin.1571429096.txt.gz
  • Last modified: 2019/10/18 20:04
  • by 127.0.0.1