Does pgpool run on cygwin - cygwin

Do you know if pgpool run with cygwin on windows ?
If it does, do know any tutorial ?
Thanks,

It sounds like you just want to test pgpool. If you just want to test, you could utilize EC2.

Related

Run nodejs app on start Windows

I have a nodejs app which should start running when windows starts. As I'm new to node and have never done anything similar I don't know how to do it. I have been reading some articles from several webs that use AdvancedInstaller or other software but don't know if there are any ways to do it without using other software. Anyone can help?
You need to use pm2
There are other packages aimed at making pm2 a windows service:
pm2-windows-startup
pm2-windows-service
It seems like you need to create *.sh script and put in the Startup folder
maybe this can help you
or just google sh script startup nodejs windows

How to execute a .run file using Mac Terminal?

Once I navigate to a certain directory that has a .run file in it, how do I execute that file using mac Terminal?
I have change the chmod 777 for fileName.run file and run it
$ chmod 777 file-name.run
$ ./file-name.run
but it does not work for me. any idea ?
it give me the following error.
$ ./ppasmeta-9.4.1.3-linux-x64.run: cannot execute binary file
Its postgres plus advanced server for linux I want to install on mac os-x .
As suggested by Muhammad Iqbal, you won't be able to run a Linux-specific binary/executable on Mac OS X without some modifications. It's like attempting to run an .exe on Linux - without wine. While Linux and OS X are similar, they are not that compatible. If you can get your desired program in the form of a .deb, that may work. If not, I would suggest either dual-booting your Mac with a small Linux distro (ie. DSL) or picking up a virtual machine. I've dual-booted before - it's a decent option for this situation if you have enough hard drive space. If another solution shows up, I'll be sure to let you know through this channel.
I am not sure what you are asking here but try this
./run
As I said in the comments, I don't think that Postgres Advanced Server is available for OSX. If Postgres 9.5.3 is suitable for your purposes, you could install homebrew and use it to install Postgres 9.5.3 with:
brew install postgresql
You can download the one-liner to install homebrew from here.

Can't run NodeSchool workshops in Git Bash. "TypeError: process.stdin.setRawMode is not a function"

From the research I did for the topic, I saw some recommendations to install tty.js with npm, but it wouldn't install as well - some sort of python exe missing from the system error.
I am able to run the program from Git CMD but it is all confusing for me because I am familiar with unix based consoles :(
The way I installed node.js and npm : All was doen with the installer provided by node.js.
Any insights? Thank you in advance!
I have installed tty.js in a linux enviroment and it works great, you should some building essentials installed, such as:
gcc
g++
make
As well as Python 2.7. When installing using npm, it will look for all the dependencies and as I understand it will compile some C code that does the magic behind the scenes. I haven't tried it on Windows, but what I have seen there is the C code designed for windows, so it probably will run.
Maybe I will be of more help if you copy what you get on the npm installation.
have you tried using Git Bash? That is what I used for the most part as well and acts more unix like. If you're on a PC, an alternative is using ConEMU as they give you a shell that is unix like. Just wanted to give you some options if you're still running into trouble, I know this is super late :)

how to install globally my node script and distribute

I did a node console script for some internal task using some dependences and it is working well. Now I have two questions:
1) how to install it globally on my computer?
I need to launch the script like this:
node myscript.js PARAM1
And, how I´ve said, it works ok. The fact is that now I want to "install" my script globally. How to do that? I´m mac user and I know that I can create an alias like this:
alias myexec='node myscript.js'
then I could use it like this:
myexec PARAM1
is this the correct way to do it? is there any other alternative maybe?
2) How to distribute?
I have some computers on my company where I need to install it (Windows & Mac), I can clone the repo and do the alias thing... is this my best option?
Thanks in advance

Access.Log Analyzer

Just a quick question. I use Ubuntu as a server and as a desktop. Does anyone have any ideas for a nice access.log analyzer? It could be a program that I download to the desktop or the server. Thanks.
If You are looking for something light, You can check command line tool for log analyzing called Go Access.
On Ubuntu/Debian just type:
sudo apt-get install goaccess
It looks like this:
AwStats is a quite popular choice and here are instructions for Ubuntu
Maybe Nihuo is suitable for you.

Resources