I use local server enviroments on my mac. But every time I close the server by terminal process is still working so when I want to turn it on again I've got error that port I used previously is already occupied. So I need to find and kill that process with
netstat -vanp tcp | grep [PORT]
command which is very annoing and time-wasting. This is not related to any server technology since I've got the same problem using both Node.js and Ruby on Rails. It's something wrong with OSX. How can I fix that issue? I use OSX El Capitain version 10.11.6
Related
Brand new Mac (OS 12.0.1, M1 chipset) sshfs and Fuse installed from https://osxfuse.github.io. I do:
sudo sshfs -d mayacc#myhost.com:/home/myacc ~/mnt
The terminal hangs, can't ^C the process.
It works fine on my Intel Mac.
Any ideas what I've done wrong?
The hang is because the user mode component of SSHfs (the one the driver in the kernel calls out) hangs, and because the driver is blocked your process is stuck in an uninterruptible state (wherein it won't respond to signals, which your ^C is (SIGINT)).
It's not necessarily an Intel vs. M1 issue. It might be as simple as a connectivity issue between your M1 and (your)host.com. (there's very little info in your question to deduce what the problem is, but I'd suggest check the full stack, from basic ping, through TCP 22, through ssh keys in your ~/.ssh folder)
I'm trying to install Firebase in to my Xcode by using mac os terminal command pod install (CocoaPods) , but it always has overtime, and connection breaks, so i cannot install it.
So here is a problem, i live in China, and i can't connect any Google services via terminal(GitHub also), but i have full access to all services using my VPN App.
Few solutions that i found - to create a custon VPN connection by command networksetup -connectpppoeservice "myVPN" but it doesnt work too, because i'm using VPN desktop App, and have no idea what data i need to type inside. Also i tried to networksetup -setv6off "Wi-Fi", but it didn't help too. I read people said that solution was just to turn off VPN, but in my case i have the same result with VPN ON/OFF.
So i have a question - how can i manage traffic from terminal through my VPN app to reach servers?
My MacOS version: 10.15.7 Catalina
errorMessage
i found how to solve my problem:
i opened a socket port from my VPN distributor
git config --global http.proxy 127.0.0.1:****
Have MAMP 6.3 on an updated macOS 11.2.1
The Configuration popup launches
Web server is working but that is it.
MySQL is not running although indicates Server is 5.7.32
Ports 80 and 30036 or 8888 makes no difference
http://localhost:8888/MAMP ... unable to connect
http://localhost:8888/MAMP/phpmyadmin.php ... unable to connect
Seems like I'm the only one for some reason as doesn't seem to anything I can find
Thanks
Try removing all log files inside of the MAMP/db/mysql directory and restart MAMP.
I'm also using the same MAMP and macOS version as you but it's working.
This is a long story.
I use an old OSX 10.4.11 machine (Power PC) as a web server. Very low use.
It runs X11 at 1.1.3 (XFree86 4.4.0).
For several years I used X-forwarding to show log traffic on a newer Mac Intel machine (Mac mini). At some point after about 2006 this just stopped working. I have never tried to upgrade the 10.4.11 machine as it met and continues to meet my needs for a low cost Web server.
Meantime XQuartz has come and been through several new versions, as has MacOS. Currently I have MacOS 10.13.6 and XQuartz 2.7.11 on the Mac Mini. I am revisiting why the long-defunct X-forwarding sessions to OSX 10.4.11 stopped working.
I find I can do X-forwarding fine from my Linux 18.04 box, which was a surprise. I have spent a lot of time trying various approaches to resolving the issue. It occurs to me that the 10.4.11 setup may just be too old, and therefore incompatible. Hence my question: "mac osx 10.4.11 with x11 1.1.3 (XFree86 4.4.0) - is this compatible to do X-forwarding from Mac OS 10.13.6?".
Any comments will be much appreciated.
I am answering my own question.
I spent several days looking at logs from ssh -v -X user#hostname, with -vv and -vvv for more log info. I also tried the ssh -Y variants of that command.
Reading extensively from stackexchange and elsewhere, I restored and re-edited the ssh_config and sshd_config files on both server and client hosts several times, and coded shell scripts to restart sshd.
The insurmountable problem was that $DISPLAY was not being set up correctly on the client. This is what led to my question.
The only way I could get X-forwarding to work with my OSX 10.4.11 PPC client was:
1) ssh -f user#hostname /usr/X11R6/bin/xterm
then
2) run my local commands on the client from that window (nsu and nsu-go).
I also had to add the correct path to all my commands, including /usr/X11R6/bin for xterm as above, and ~/bin to my commands on the client.
The package I was working with was https://sourceforge.net/projects/nsu/ where detail changes are required.
a bit of a background to my issue:
I'm on a OSX El Capitan and I installed openssh7.1 using homebrew, placed all my keys in the ~/.ssh folder, and created ~/.ssh/config to identify each host and the key to be used to authenticate.
When using the terminal, I simply use $ ssh {hostname} and it connects me where I need to be. But when I try to connect from installed applications (like Sequel Pro, FileZilla, XCode) then I'm just unable to connect at all..
I don't even get any feedback from those applications! I'm feeling lost here, anyone has any piece of advice?
FYI, I symlinked /usr/local/bin/ssh to /usr/bin/ssh (and all other openssh binaries as well)