Open Port in Ubuntu


Question So I'm using AWS using EC2 and I'm trying to open up a port for Postgresql. In AWS I already have it open: TCP Port (Service) Source Action 0 - 65535 sg-92aadda2 (default) Delete 22 (SSH) 0.0.0.0/0 Delete 80 (HTTP) 0.0.0.0/0 Delete 5432 0.0.0.0/0 Delete When I do netstat it looks as though the port is listening: # netstat -an | grep 5432 tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN When I do a localhost nmap I get the following:…
Read more ⟶

MongoDB only works when run as root on Ubuntu - data directory issue


Question I installed MongoDB with the official packages (mongodb-stable), and followed the Quickstart guide which includes: By default MongoDB will store data in /data/db, but it won't automatically create that directory. To create it, do: $ sudo mkdir -p /data/db/ $ sudo chown `id -u` /data/db You can also tell MongoDB to use a different data directory, with the --dbpath option. MongoDB will only start if I run sudo mongod - if I try and run just mongod I get the error:…
Read more ⟶

g++: error trying to exec 'cc1plus': execvp: No such file or directory


Question I am using ubuntu 12.04. I'm trying to "make" a project. I get this error: g++: error trying to exec 'cc1plus': execvp: No such file or directory I have g++ installed. Answer I tried the command @MonoThreaded gave but it failed. I tried below and it works. sudo apt-get install g++ Please don't include any version after the g++. …
Read more ⟶

trace a particular IP and port


Question I have an app running on port 9100 on a remote server serving http pages. After I ssh into the server I can curl localhost 9100 and I receive the response. However I am unable to access the same app from the browser using http://ip:9100 I am also unable to telnet from my local PC. How do I debug it? Is there a way to traceroute a particular IP and port combination, to see where it is being blocked?…
Read more ⟶

How to start Tomcat with output on console in Linux? [closed]


Question Closed. This question is off-topic. It is not currently accepting answers. </div> Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 years ago. Improve this question I know it's possible to start tomcat and then run tail -f catalina.out to view Tomcat output. But how to run tomcat and view output at once? Are there some options to run startup.sh with? Answer You're looking for tomcat/bin/catalina.…
Read more ⟶

Jenkins auto created user account, how to login/change password?


Question I've setup Jenkins, and it's working well. It uses the Perforce plugin as the SCM, and builds automatically upon a checkin. My issue is that when a user makes a commit to the tree it auto creates a user account on the system, but no password is set, and the user cannot login. The system is secured on a intranet, and I have set Jenkins to use "Jenkins own user database"…
Read more ⟶

sudo service mongodb restart gives "unrecognized service error" in ubuntu 14.0.4


Question I just installed mongoDB on ubuntu 14.0.4. I tried to start the shell but I'm getting a connection refused error. me@medev:/etc/init.d$ mongo MongoDB shell version: 2.6.5 connecting to: test 2014-11-10T15:06:28.084-0500 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused 2014-11-10T15:06:28.085-0500 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146 exception: connect failed So I decided to try to restart the service but that's failing too. I get the following error message: me@medev:/etc/init.…
Read more ⟶