How to check is connection encrypted [closed] - postgresql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Using old Postgres server
PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real (Debian 4.4.5-8) 4.4.5, 64-bit
Server has symlinks server.crt and server.key in data directory /var/lib/postgresql/9.1./main and ssl=true in postgresql.conf file.
Server is running in old Debian squeeze.
Client accesses server from Windows 10 using psqlODBC driver with
sslmode=allow
in connection string.
How to verify that connection is encrypted? Is there some command in client or server or can some protocol analyzer used if no easier way?

The correct solution is to upgrade to 9.5 or above and look into the pg_stat_ssl view. That will tell you if and how the connection is encrypted.

Related

Everyday i have to restart my mongodb server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
When i restart my PC (Ubuntu OS) , i have to restart my mongodb server.
(service mongod restart)
So any way to not always restart my mongo server
I think this will work.
systemctl enable mongod.service
Check the below link once.
Ask Ubuntu

What location should MongoDB run from on Ubuntu 15.10? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am following these instructions to install MongoDB 3.2.5 on Ubuntu 15.10:
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/#install-for-64-bit-linux
I am up to step 3:
Copy the extracted folder to the location from which MongoDB will run.
What location should MongoDB run from?
(Note: I believe this location should be different from where data is stored by defaut ie /data/db)
You are free to choose where you want to install MongoDB, but it is customary to install software into /opt when not installing software using the package manager (apt in case of Ubuntu).
Why aren't you following the guide for installing on Ubuntu - it's much simpler: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Centos 7 Avahi doesn't resolve from windows machines [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have installed and configured avahi-daemon and samba on Centos 6.6 and it's working when I am testing it from an Ubuntu machine. e.g.: ping myhostname.local or smb://myhostname.local
However, when I try from a windows machine, neither samba works nor I can ping it via ping myhostname
Can anyone please explain me the possible difference between what Windows does and what Ubuntu does.
Besides, it would be great if Windows could list my server when browsing network, but I don't know if I should enable something like a broadcast or just normal configuration is adequate.
Thanks a log in advance.
I've just post an answer to the same question on serverfault:
https://serverfault.com/questions/711619/centos-7-avahi-doesnt-resolve-from-windows-machines

Running Mongodb on OSX Mavericks [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have installed MongoDB on OSX using Homebrew.
When I run:
mongo
Mongo starts but doesnt seem to be able to connect to the test database. This is what comes up:
MongoDB shell version: 2.6.3
connecting to: test
Mongo doesn't then get any further.
Thanks,
Anthony
Did you start the mongod process? mongo is just a client for connecting to the database. Checkout brew info mongo for several methods on running/starting the database itself.

Install reddit on amazon webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have followed every step as given here. I installed all the servers and libraries but when I set the PostgreSQL server it hangs stating the follows on the terminal
LOG: database system was shut down at 2014-01-22 01:53:52 UTC
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
What to do?
I assume you're referring to these lines:
Finally, start up the server.
$ sudo -u postgres postgres -D /usr/local/pgsql/data
If so, that starts the PostgreSQL server in blocking mode. It is running. It won't exit until told to, and that terminal won't return. It sounds like you'd prefer it to exit and keep running in the background, in which case you should use pg_ctl to start the server instead.
The bigger problem is that those instructions are pretty stupid. You shouldn't be initdb'ing a new cluster and starting a new server; you almost certainly have one installed and running. It's hard to say, since you didn't say how you installed PostgreSQL, what OS you're on, what PostgreSQL version you have, etc.
In general, though, you should be connecting to your existing PostgreSQL install. Use that, don't initdb a new one. That's why the guide you were reading says:
This section may be unnecessary on your system. Check if your installation of postgres created a default database and start scripts for you.
Since you're using a stock Ubuntu install, please start by reading the Ubuntu introduction to PostgreSQL.
Then follow the setup guide starting at "create the database".