All Questions
45
questions
1
vote
0
answers
213
views
Datadog custom metrics from app (docker container) inside host
I have a datadog agent in my host machine, CentOS.
I have a nodeJS application, where I want to send custom metrics from it.
Config from app:
var StatsD = require('hot-shots');
var dogstatsd = new ...
2
votes
1
answer
14k
views
how to fix the npm install fails with 'An unknown git error occurred' in one folder but works in a another folder
My Server runs on Centos 8 and I installed nodejs latest (v14.17.5) and NPM (v7.21.0), both dont have a .git folder in there.
I have a very very strange issue, If I goto folder example1.com, and run ...
0
votes
0
answers
695
views
Proper way to package a NodeJS application with rpmbuild
I have created my first rpm package for a NodeJS app which is ran as a systemd service.
Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version ...
0
votes
1
answer
5k
views
How to update yum repositories to fetch newer versions of nodejs and related ones in CentOS 7?
I'd like to update certain packages.
The latest versions are not presented.
$ sudo yum list nodejs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos1.hti.pl
* ...
0
votes
1
answer
2k
views
Apache reverse proxy to nodejs server on CentOS 7.7 (WHM)
I'm trying to setup an apache reverse proxy when accessing mysite.com to 127.0.0.1:3001, by setting up a virtual host in the WHM > Apache Configuration > Include Editor > Post VirtualHost Include (all ...
1
vote
1
answer
574
views
Builed node.js in centos failed
I'm trying to install node.js in my CentOS server,befor I run the "make"commend,everything seems perfect.When I run the make command and it produces the following:
make -C out BUILDTYPE=Release V=1
...
-2
votes
1
answer
391
views
CentOS, install nodejs latest
i have problem with installation of latest version of node on CentOS 7
i run
yum remove nodesource-release* nodejs
yum clean all
command rpm -qa 'node|npm' shows nothing, so i run this command:
...
1
vote
1
answer
1k
views
nginx multiple http/https proxy domains
I have a server that is going to host many sites, but right now there are just two. site1 (http://site1.com) is http and site2 (https://site2.com) is https. Both of these sites are node.js based and ...
0
votes
1
answer
2k
views
Nodejs/Apache config for proxy pass
I want to use Nodejs/Apache proxy pass to serve my APIs, but after add below apache(httpd) config, it seems that config not working.
OS:
CentOS 6
/etc/httpd/conf/httpd.conf:
...
<VirtualHost *:...
0
votes
1
answer
166
views
Trouble configuring https with nginx on centos
I've got a node.js project running locally with http2 and https. Everything is running great, I generated a self signed cert and running the app serves everything up correctly. So now i'm trying to ...
0
votes
1
answer
81
views
issues configuring nginx with node.js app
Trying to get nginx to proxy my node.js app and use a domain with it. I'm going to have many domains mapped to the server so i'm using separate .conf files for each server block. The issue i'm having ...
0
votes
0
answers
242
views
NodeJS application not running on centos
I am trying to run following simple nodejs code. when I open [IP ADDRESS]:PORT on browser, After a long loading I get request timeout.
When I try to run code with node index.js I get Server ready ...
0
votes
0
answers
674
views
Can't install NodeJS v9.7 on centos 6
I followed this answer to install NodeJS on CentOS 6. When I reach to step 8 and enter make, I get following errors.
Instructions:
su -
yum install gcc-c++ openssl-devel
cd /usr/local/src
wget ...
1
vote
1
answer
61
views
Using Centos is it possible to make a repo for node.js?
Background: I'm using CentOS 7.4.
I created a repo file for nginx which should make it easier to keep updated.
Inside etc/nginx I created a folder yum.repos.d and inside of that folder I inluded the ...
0
votes
1
answer
447
views
single IP VPS - how to run apache / multiple nodejs on separate domains on port 80?
I know it isn't the optimal solution
I have several apache sites running on port 80 - i wanted to a add a nodejs app - works fine on port 8000.
I am using this setup
http://physalix.com/reverse-...
0
votes
1
answer
3k
views
disable apache permanently and use only nginx [closed]
I'm running nodejs on localhost and nginx to set up reverse proxy server on a VPS.
Using TMUX I'm starting both nginx and nodejs and detaching from the session. I have tried disabling apache alot ...
1
vote
1
answer
2k
views
nodejs overwritten /usr/bin/which, how to fix?
I have a newly installed centos 7 with only some nodejs projects. Then I found which command is not working properly.
# which ls
which: illegal option -- -
usage: which [-as] program ...
# echo $...
0
votes
1
answer
1k
views
Let node.js application directly listen to 80 port
I have a node.js application I want it to directly listen to 80 port, but when I run the node app with the following command node index.js but with firewall running systemctl start firewalld. When the ...
1
vote
2
answers
454
views
Replace CentOS / RedHat packgages from different repository
I have inherited a CentOS server where nodejs is installed from epel repository. However, I need a specific version of it, so I've installed nodejs repository but I can't update it from the new ...
1
vote
0
answers
708
views
CentOS 6.8 OpenSSL v1.0.1-fips NodeJS handshake
I have installed nodejs (lastest v.7.x.x) on my CentOS 6.8 form binary package. I am trying to connect to a site that uses quite old TSLv1 encryption protocol. On handshake with that domain ( I use ...
0
votes
2
answers
291
views
http 2 with centos 7.0, nginx and a nodejs app (ghost)
I'm trying to get a ghost blog running over SSL and http2. SSL works fine but its constantly served on HTTP1.1. I'm trying to figure out why this keeps happening.
My nginx conf file looks like the ...
1
vote
1
answer
180
views
Node not responding on port 5000 from different subnet
So I've got 2 subnets, Load balancer and backends.
BE1 is running a node server, as we're trying to get sockets working:
BE1 can request localhost:5000/test
BE2 can request BE1:5000/test
LB1 can ...
1
vote
1
answer
49
views
Setting Up Node on Production Server
I Really need some help. I have this centos 6 or 7 server. I have set up my nodejs app and run on the server on port 8080.
netstat also output it
weshop@host [~]# netstat -an | grep "LISTEN " | grep ...
3
votes
2
answers
391
views
Pages hanging on waiting for query, consuming memory and take 2 hours to fail
See attached picture of Fusion Reactor, showing pages that just keep on running.
Times have gone up into the millions and I've left them to see if they'd complete but that was when there were just 2 ...
0
votes
1
answer
5k
views
Configuring CentOS 6 iptables to use port 80 for NodeJS app running on port 3000
I'm running a fresh instance of CentOS 6 using AWS. There is something in iptables that is blocking my nodejs app.
Here is my nodejs app:
var express = require('express');
var app = express();
app....
-1
votes
1
answer
90
views
CentOS 6 script at server boot up
I have three terminal commands that I would like to execute when server boots up. How can I achieve this? I have seen many solutions, but none of them seems to be simple and working.
Here are the ...
2
votes
1
answer
2k
views
Install Node 0.12.x binaries on Centos 7
As of this post, there don't appear to be any yum or rpm options for available for installing NodeJS 0.12.x. Even Node's semi-official yum repo (nodesource.com) is still on 0.10.x for RHEL distros.
...
0
votes
1
answer
150
views
Got blocked by server after starting TCP nodejs sever. Why?
I recently installed node on my VPS, and tried to complete a tutorial. I saved this code into server.js and hit node server.js in putty. I got instant "ban" from my VPS, I can't access it, however on ...
4
votes
2
answers
4k
views
nodejs version on EPEL repository
Current stable node.js version is v0.12.2. I just run yum update on my machine and it updated node to v0.10.36.
Why is my EPEL repo version so old compared to current stable one? Can I update node to ...
0
votes
1
answer
938
views
Nodejs remote debugging ports closed
I have a problem with nodejs remote debugging. I'm using centos on remote server and phpstorm on my PC.
When I open putty: I type in command:
node --debug-brk=5858 main_server.js,
and the output is: ...
9
votes
8
answers
66k
views
Centos 7 Can't yum install npm
I'm trying to get nodejs and npm installed on centos 7
So first I did
rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
to get the epel repository
Then I ...
1
vote
0
answers
1k
views
Node js server not responding outside localhost centos
I'm running a basic express server from CentOS but for some reason it is not responding outside of localhost, I have tried everything I have found on google but nothing works so far.
This is my ...
2
votes
1
answer
4k
views
Connection timed out on Node.js app running under CentOS
I followed this tutorial to create a simple node.js app on my CentOS:
the node.js version is:
$ node -v
v0.10.28
Here's my app.js:
// Include http module,
var http = require("http"),
// And url ...
0
votes
1
answer
2k
views
Permissions denied when installing Node.js on CentOS 6.5
I'm trying to install Node.js on an Nginx+Passenger+Ruby server running the following steps as user 'deploy':
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar zxvf node-v0.10.26.tar.gz
...
2
votes
1
answer
6k
views
How to use a different version of python duing NPM install?
Salam (means Hello) :)
I have terminal access to a VPS running centos 5.9 and default python 2.4.3 installed. I also installed python 2.7.3 via these commands: (I used make altinstall instead of make ...
-1
votes
1
answer
223
views
Configuring CentOS apache server to default to a specific port for ExpressJS and Node [closed]
Completely new to Linux and virtual private servers so please bear with me.
I have a webapp built on ExpressJS and NodeJS that runs on port 5000 of my server, accessible via web by typing: http://00....
2
votes
1
answer
2k
views
How to open a port below 1024 in Cent OS for socket.io?
I'm trying to open port 843 in my Cent OS 5.2, I added following line to etc\sysconfig\iptables :
-A INPUT -p tcp --dport 843 -j ACCEPT
and then updated my iptables service. I need to listen to that ...
2
votes
1
answer
4k
views
Broken dependencies on CentOS 6.4: can install nodejs but not npm
I'm using a fresh installed CentOS 6.4 (x86-64) with the EPEL repository.
$ yum install nodejs
...
$ node -v
v0.10.5
So far, so good, but when I try to install npm, I'll get this error message:
$ ...
1
vote
2
answers
7k
views
Running Node.js at boot
I'm trying to run a node.js script at boot using crontab.
Here's the command
/usr/local/bin/forever -c /usr/local/bin/node start /var/www/html/lights.js >/var/log/lights 2>&1 &
At ...
6
votes
1
answer
2k
views
What's the right way to start a node.js service?
I'm running a node.js service (statsd) on CentOS 6. What's the proper way to daemonize and start such a service?
Potential Daemonizers--are daemonizers supposed to be language-specific or general?:
...
-1
votes
4
answers
2k
views
installing gcc on CentOS
I want to install node.js on CentOS
unfortunately i'm having trouble installing gcc (and all of the things that generally come with it in order to get node to even compile) on centOS via commandline.
...
0
votes
1
answer
305
views
unknown load balancer performance with varnish
We're currently using Varnish because it does a good job caching, and I'm trying to get it to perform well on cache misses. My benchmarks are giving me results I don't understand.
I have 3 boxes ...
1
vote
2
answers
4k
views
Node.js Build failed: -> task failed (error#2)?
I'm trying to install Node.js on my CentOS server.
I run ./configure and it runs perfectly fine. I then run the 'make' command and it produces the following:
[5/38] libv8.a: deps/v8/SConstruct -> ...
1
vote
1
answer
3k
views
How do you run Nginx on port 8080 and Apache on port 80 on the same box?
I want to install Node.js on my box (CentOS 5) for testing and sandboxing but I can't uninstall Apache as recommend by developers using Nginx.
So what I'd like to do is have Nginx serving
nodejs....
132
votes
20
answers
148k
views
How do you install Node.JS on CentOS?
I've found numerous installation instructions for Node.js but they all seem so complicated -- I'm not a super sys admin but I can get around. I have yum on the system, but I didn't find any node.js ...