How to check what's wrong with my Centos 7?

General support questions
Post Reply
jfha73
Posts: 17
Joined: 2009/02/22 13:46:26
Location: New York
Contact:

How to check what's wrong with my Centos 7?

Post by jfha73 » 2018/10/16 20:33:37

Hello,

I have a Centos 7 installed on an Apple Mini, everything was working fine until today when all of the sudden I can't get to it remotely (using ssh) or accessing it's website, I can ping it, but it doesn't look like anything is running.

How can I check what's happening to it? I checked /var/log/messages, but I can't find anything that tells me anything about it.

Thanks.

YBellefeuille
Posts: 319
Joined: 2012/03/06 22:30:17
Location: Ottawa

Re: How to check what's wrong with my Centos 7?

Post by YBellefeuille » 2018/10/16 21:20:42

I'm confused: you can't log in remotely using ssh, but you can check /var/log/messages? How can you do that, if you can't log in? Or is this actually a local machine?

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: How to check what's wrong with my Centos 7?

Post by lightman47 » 2018/10/16 22:48:07

What's in /var/log/secure at the exact time you attempted access (that failed)?

Your question (with no details) is confusing at best. You can't ssh in, but "it looks like nothing is running" - more info/detail please. For instance, you can''t ssh in, but somehow have determined nothing is running ... ??? How?

Do you mean that because you can't connect from another computer at another location that it appears nothing is working? Or do you mean that when you got back home and investigated on the 'troubled machine' it appears nothing is running?

When asking for help, details are your friend! In this case, what results/messages from what machines caused you to believe nothing is working?

Thanks

Elliott
Posts: 44
Joined: 2018/09/14 01:30:14

Re: How to check what's wrong with my Centos 7?

Post by Elliott » 2018/10/17 08:15:24

Check the status of those services with

Code: Select all

systemctl status sshd
systemctl status httpd

Post Reply