redhat

Get error when I install MongoDB on RedHat

无人久伴 提交于 2019-12-12 03:53:18
问题 I was trying to install the Mongo Server on my RedHat server via following this document: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ Here is my environment information: [root@localhost tmp]# uname -a Linux localhost.localdomain 2.6.18-164.el5PAE #1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 i686 i386 GNU/Linux [root@localhost yum.repos.d]# ll /etc/yum.repos.d/ -rw-r--r-- 1 root root 115 Apr 3 17:19 10gen.repo -rw-r--r-- 1 root root 1426 May 24 2009

How to set Vncserver in bash script (redhat6)

橙三吉。 提交于 2019-12-12 03:36:51
问题 I am using a script to automatically set up a computer. I need to assign a password to the vnc server for the user, which is normally done using the vncserver command. However, it prompts for the user to enter and re-enter their password, neither of which the script is capable of doing. So, how can I set up the VNC password without an interactive prompt? 回答1: Please try following bash script sample: #!/bin/sh vncpasswd << EOF 123456 123456 EOF 来源: https://stackoverflow.com/questions/31851343

Can't install RVM on Redhat Linux Server

北城以北 提交于 2019-12-12 03:25:58
问题 I need to install RVM in order to get my copy of Ruby updated to 2.0.0 I've tried this following command: \curl -L https://get.rvm.io | bash But it doesn't work and I get the following error: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13784 100 13784 0 0 34419 0 --:--:-- --:--:-- --:--:-- 34419 Downloading RVM from wayneeseguin branch master bash: line 133: which: command not found bash: line 116: rvm_error: command not found Could

NodeJs website hosted on AWS linux is not accessible

半腔热情 提交于 2019-12-12 03:08:49
问题 I hosted my NodeJs website on AWS Red Hat Linux but it's accessible from outside. although when i run my nodejs server from putty, it was running just fine. below is my server creation code in nodejs.I'm using express framework with jade. app.listen(80, function () { console.log('Server starts on port: ' + 80); }); I have opened all traffic from AWS console also and tried other ports as well. ps -ef | grep node says:- and app.log says:- uncaughtException: Error: listen EADDRINUSE Server

XInternAtom and XGetSelectionOwner was not declared in this scope

旧街凉风 提交于 2019-12-12 03:02:45
问题 I'm building Qt 5.5.0 on rhel 6.7, and building it with -qt-xcb. I run in to the following issues g++ -c -include .pch/Qt5X11Extras_debug -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_X11EXTRAS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED

rpmbuild error file not found even though files are in the path

旧巷老猫 提交于 2019-12-12 02:56:58
问题 i did the following but gotten error when running rpmbuild Files are there in path Any help or hint are appreciated Thanks rpmbuild -vv --buildroot $PWD/root --target x86_64 -bb bin-show.spec Building target platforms: x86_64 Building for target x86_64 Processing files: helloworld-1.0-1.x86_64 error: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc/testpackage.conf RPM build errors: File not found: /nobackup/username/prod/packaging/redhat/bin-show/root/etc

Awk inside Shell Script to display /etc/passwd info [closed]

情到浓时终转凉″ 提交于 2019-12-12 02:07:14
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Im trying to write an awk line in my shell script that will search for the passwd files information belonging to the user that was inputted. Since awk only searches in specific columns and the fact that the first column will vary based on whoever username is used, i think i have to use the script

Issue with mysql backup in cron

一世执手 提交于 2019-12-11 17:28:19
问题 I'm just trying to perform a mysqldump and have it scheduled. I'm using RHEL 5 and have added it to the crontab as shown below: 22 13 * * * root mysqldump --user=root --password=12345 mysqldb > /var/backups/mysqldb date +%d%m .sql The .sql file never ended up in the backups folder. I even attempted to run this command line and it worked fine which tells me its something to do with the cron. Furthermore, I added a simple comand like "ls" and the output to the same directory and it worked fine.

Access Angular app running inside Docker container

筅森魡賤 提交于 2019-12-11 17:03:34
问题 I've created a docker image to test an Angular app but I cannot connect from host to running app inside docker container. The image was created using a Dockerfile with: EXPOSE 4200 8080 80 I run the docker container with command: docker run -ti -p 4200:4200 angulardev /bin/bash Inside container I create the Angular application and start it using: ng serve From container, if I open localhost:4200 I see the application but I cannot access it from host OS (RHEL7) What is wrong? The Angular app

RedHat, which package provides hdf5.h

最后都变了- 提交于 2019-12-11 16:16:45
问题 Using RedHat Linux 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux . I mean to have hdf5.h . In another Ubuntu system Linux 4.4.0-75-generic #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I can do $ dpkg -S /usr/include/hdf5.h libhdf5-openmpi-dev: /usr/include/hdf5.h In RedHat I executed # yum whatprovides "*/hdf5.h" Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is receiving