服务器维护命令

1.查找命令,ps -ef|grep redis
2.查找命令,find / -name redis
3.redis目录,/usr/local/bin/redis-server;配置文件,redis.conf
4.胖丁tomcat,/mysoft/tomcat7.0.52_1
5.胖丁计划任务,/mysoft/tomcat7.0.52_9
6.nginx目录,/usr/local/openresty1.9.7.4/nginx
Last login: Mon Oct 23 11:02:27 2017 from 125.86.93.192

Welcome to aliyun Elastic Compute Service!

[root@iZbp1g3u73g9o2vyoz3iwpZ ~]# ps -ef|grep redis
root      1639     1  0 May29 ?        03:01:20 ./redis-server 118.178.91.10:6379       
root     13064 13047  0 11:06 pts/3    00:00:00 grep redis
[root@iZbp1g3u73g9o2vyoz3iwpZ ~]# find / -name redis-server
/usr/local/bin/redis-server
/mysoft/redis-2.8.24/src/redis-server
[root@iZbp1g3u73g9o2vyoz3iwpZ ~]# cd //usr/local/bin/
[root@iZbp1g3u73g9o2vyoz3iwpZ bin]# ll
total 15340
-rw-r--r-- 1 root root   59917 Oct 23 11:06 dump.rdb
-rwxr-xr-x 1 root root 4586395 Dec  7  2016 redis-benchmark
-rwxr-xr-x 1 root root   22225 Dec  7  2016 redis-check-aof
-rwxr-xr-x 1 root root   45523 Dec  7  2016 redis-check-dump
-rwxr-xr-x 1 root root 4688269 Dec  7  2016 redis-cli
-rw-r--r-- 1 root root   36180 Jan 18  2017 redis.conf
lrwxrwxrwx 1 root root      12 Dec  7  2016 redis-sentinel -> redis-server
-rwxr-xr-x 1 root root 6255829 Dec  7  2016 redis-server
[root@iZbp1g3u73g9o2vyoz3iwpZ bin]# man redis-server 
No manual entry for redis-server
[root@iZbp1g3u73g9o2vyoz3iwpZ bin]# echo ./redis-server &
[1] 13071
./redis-server
[root@iZbp1g3u73g9o2vyoz3iwpZ bin]# cd /mysoft/
[1]+  Done                    echo ./redis-server  (wd: //usr/local/bin)
(wd now: /mysoft)
[root@iZbp1g3u73g9o2vyoz3iwpZ mysoft]# ll
total 25660
drwxr-xr-x  4 root root      4096 Jun 26 14:31 20170626bak
drwxr-xr-x 11 root root      4096 Oct 18  2016 apache-tomcat-7.0.72
drwxr-xr-x  3 root root      4096 Jun 26 11:03 bak_20170626
drwxrwxrwx  2 root root      4096 Dec 13  2016 cert
drwxr-xr-x 16 1107  5100     4096 Oct 20  2016 GraphicsMagick-1.3.23
-rw-r--r--  1 root root   9004989 Mar 25  2016 GraphicsMagick-1.3.23.tar.gz
drwxrwxr-x 15   20 games     4096 Oct 20  2016 ImageMagick-6.9.3-5
-rw-r--r--  1 root root  13266203 Feb 20  2016 ImageMagick.tar.gz
drwxrwxr-x  6 1000  1000     4096 Oct 20  2016 openresty-1.11.2.1
-rw-r--r--  1 root root   3930804 Aug 25  2016 openresty-1.11.2.1.tar.gz
drwxrwxrwx  6 root root      4096 Oct 17 19:33 redis-2.8.24
drwxr-xr-x  2 root root      4096 Jan 20  2017 test
drwxrwxrwx 23 root root      4096 Oct 17 19:44 tomcat7.0.52_1
drwxr-xr-x  9 root root      4096 Jan 19  2017 tomcat7.0.52_11
drwxrwxrwx 11 root root      4096 Feb 14  2017 tomcat7.0.52_3
drwxr-xr-x  9 root root      4096 Jan 19  2017 tomcat7.0.52_5
drwxr-xr-x  9 root root      4096 Jan 19  2017 tomcat7.0.52_7
drwxrwxrwx 11 root root      4096 Jul 31 16:16 tomcat7.0.52_9
drwxr-xr-x 11 root root      4096 Feb 24  2017 tomcat7.0.52_99
drwxr-xr-x  4 root root      4096 Feb  6  2017 TYYWX
[root@iZbp1g3u73g9o2vyoz3iwpZ mysoft]# echo tomcat7.0.52_1

你可能感兴趣的:(Linux系统)