Home >Operation and Maintenance >Linux Operation and Maintenance >linux view service installation directory

linux view service installation directory

王林
王林Original
2020-01-11 14:01:462874browse

linux view service installation directory

This article takes viewing the reids installation directory as an example.

If neither the which nor whereis commands can find the installation directory, you can use the following method:

1. First execute the following command to get the process number

ps -ef|grep redis

Get the process number xxxx. (Free video tutorial sharing: linux video tutorial)

2. Then execute the following command to view

ls -l /proc/xxxx/cwd

related article tutorial recommendations: linux tutorial

The above is the detailed content of linux view service installation directory. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn