简体   繁体   中英

Where is my socket server on AWS EC2 instance?

I have taken over a project that has an AWS ec2 elasticbeanstalk instance running a socket.io server.

I have logged in via and done the following steps.

  1. SSH in
  2. cd /var directory.
  3. ls > account app cache db elasticbeanstalk empty games kerberos lib local lock log mail nis opt preserve run spool tmp www yp
  4. I can't see to find the socket server code? Nor the logs for the socket server?

I am not sure where they would be located.

There are myriad methods to get code on to a server and to run it. Without any information about the code or the OS or anything else, assuming its a Linux based OS, if I'm looking for something and know what it is, I can usually find it by searching for a string that I know I will find inside at least one of the files on the server.

In this case, since its a socket.io, I'd search for socket.io:

grep -rnw '/' -e 'socket.io'

The result will show me all files, including the full path, that contain “socket.io”, and you should be able to determine where the code is pretty quickly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM