lsof | http : //people.freebsd.org/abe/
kandi X-RAY | lsof Summary
kandi X-RAY | lsof Summary
http://people.freebsd.org/~abe/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lsof
lsof Key Features
lsof Examples and Code Snippets
Community Discussions
Trending Discussions on lsof
QUESTION
I tried this:
...ANSWER
Answered 2022-Apr-02 at 15:59When you do
QUESTION
I have some Java code that is generating a socket binding. It's hard to provide a minimal example as this is part of a web framework, but it effectively does this check at some point.
...ANSWER
Answered 2022-Feb-16 at 20:18They are not binding to the same port. One is binding to TCP on top of IPv6, the other is binding to TCP on top of IPv4.
To expand on the Java details a bit: new ServerSocket(port)
in Java uses InetAddress.anyLocalAddress()
because no InetAddress
was passed in. InetAddress.anyLocalAddress()
can return either an IPv4 or IPv6 address, which means this isn't guaranteed to be the same value to bind to across JVMs despite the same port being passed in.
QUESTION
I installed ubuntu server VM on Azure there I installed couchbase community edition on now i need to access the couchbase using dotnet SDK but code gives me bucket not found or unreachable error. even i try configuring a public dns and gave it as ip during cluster creation but still its giving the same. even i added public dns to the host file like below 127.0.0.1 public dns The SDK log includes below 2 statements Attempted bootstrapping on endpoint "name.eastus.cloudapp.azure.com" has failed. (e80489ed) A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
SDK Doctor Log:
...ANSWER
Answered 2022-Feb-11 at 17:23Thank you for providing so much detailed information! I suspect the immediate issue is that you are trying to connect using TLS, which is not supported by Couchbase Community Edition (at least not as of February 2022). Ports 11207 and 18091 are for TLS connections; as you observed in the lsof output, the server is not listening on those ports.
QUESTION
I have a AST2600 evb board. After power on (w/ RJ45 connected), it boots into a OpenBMC kernel. From serial port, using ip
command I can obtain its IP address. From my laptop, I can ssh
into the board using account root/0penBmc
:
ANSWER
Answered 2022-Feb-10 at 02:58Good question.
First, it is pretty straigt forward to add common tools/utitlies to an image. It could be added (for local testing only) by adding a line
QUESTION
There is an idea that indicates not to run flask app in production with gunicorn or uwsgi. Tiangolo has mentioned in one of his repositories that app.run should be used just for development, not deployment or production. Link to Tiangolo's comment on this topic His code is as follows:
...ANSWER
Answered 2022-Jan-05 at 13:07After digging around with gunicorn library for a while, I noticed that gunicorn uses import.import_module
to import the entrypoint module(The module that contains the app, in my case entry_point.py) and the codes under if __name__ == '__main__':
won't be executed and it's pretty safe to put anything there. Link to import_app method in gunicorn library. This method is called from method load_wsgiapp
link to load_wsgiapp inside the primary runner class WSGIApplication
Link to WSGIApplication class.
As I noticed Tiangolo meant that using flask app directly for production is not safe because:
The flask application server is not developed or tested for production performance or security.
QUESTION
emphasized textI have trouble to connect to localhost. I am trying to run Nuxt aplication on port 3000.
sudo lsof -i -P -n | grep LISTEN
command says that my port is listening.
My other strapi application works on port 1337. I tried to change port of Nuxt application but didn't work out. I have tried different browsers and remove cache. Application worked yesterday and I am not aware that I have changed something. I am using Ubuntu 20.04.2 LTS
...ANSWER
Answered 2021-Dec-06 at 12:45Update: Solved. Colleague added serverMiddleware: ['redirect-ssl'] packege to project that caused problems on localhost.
QUESTION
I've got an alert from my firewall that a Debian virtual machine I have tried to download a miner virus.
tcpdump shows every minute it reaching out to:
...ANSWER
Answered 2021-Nov-25 at 09:46netstat can be used in continuous mode with the "-p" option to log the process initiating the connections, as described here: https://unix.stackexchange.com/questions/56453/how-can-i-monitor-all-outgoing-requests-connections-from-my-machine
Use the following command to log the connection attempts and pinpoint the initiating process:
QUESTION
Whenever I try to run
...ANSWER
Answered 2021-Nov-16 at 11:46Well, this is interesting. I did not think of searching for lsof
's COMMAND
column, before.
Turns out, ControlCe
means "Control Center" and beginning with Monterey, macOS does listen ports 5000
& 7000
on default.
- Go to System Preferences > Sharing
- Uncheck
AirPlay Receiver
. - Now, you should be able to restart
puma
as usual.
QUESTION
I tried to run my express app with port 5000, and I found that some processes are already using it:
...ANSWER
Answered 2021-Nov-07 at 00:45I had this exact same problem too. I think it's because of macOS Monterey (12.0). To fix it, run this command in a terminal:
QUESTION
I need to use the port 5000 with flask but it seems to be already in use by some process.
This is my output when I run sudo lsof -i:5000
:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ControlCe 1897 manu 32u IPv4 0x4ab7b80aa5149af7 0t0 TCP *:commplex-main (LISTEN)
ControlCe 1897 manu 32u IPv4 0x4ab7b80aa5149af7 0t0 TCP *:commplex-main (LISTEN)
Whenever I try to kill the process by running kill -9 $PID
it restarts immediately.
I don't know what this process is and why is occupying the port 5000.
Of course I could set flask to use another port but I would really like to know what this process is and why I can't kill it.
...ANSWER
Answered 2021-Oct-27 at 10:54macOS Monterey has a new feature called "AirPlay Receiver" that uses port 5000. You can disable this feature in System Preferences -> Sharing -> AirPlay Receiver. After this, you should find port 5000 free again.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lsof
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page