redhat

redhat 常用命令记录

时光总嘲笑我的痴心妄想 提交于 2019-12-12 15:35:17
ifconfig 查看网络信息 ip ip addr show ehto 查看网卡信息 mkdir 建立目录 查看日志 tail -f /var/log/messages df -h 查看硬盘挂载信息 fdisk -l 查看硬盘分区 mount 挂载硬盘 来源: https://www.cnblogs.com/your568/p/12028708.html

WHOIS server daemon

允我心安 提交于 2019-12-12 12:06:34
问题 Is there any WHOIS server daemons to run on my serer and serve My requests? Is it possible to deploy own WHOIS server in the end of WHOIS hierarchy like DNS servers are? 回答1: Take a look at rwhois. It is, at the very least, recognized by ARIN, and you may or may not be able to get your domain registrar to forward whois requests to you. But if they will, you can run an rwhois server that will provide whois information that is appended to the end. 回答2: Take a look at https://github.com/DaKnOb

Openshift app redirecting to https://domain_name/app

不羁岁月 提交于 2019-12-12 09:31:36
问题 I have hosted an app on Redhat Open shift. I didn't change anything but it started redirecting to https://www.plovist.com/app and throwing 404 error. Can anyone help me in solving this? 回答1: Make sure that you have correctly added your alias to your application (www.plovist.com) 回答2: I logged into Godaddy(my DNS) account and found out that in Cnames(Alias) www wasn't pointing to mydjango-plovist.rhcloud.com (URL given by Openshift). Also I pinged mydjango-plovist.rhcloud.com and it gave a

Running “who am i” in a single command with sudo doesnt return anything

一世执手 提交于 2019-12-12 06:50:12
问题 I am trying to run "who am i" command in a single line in the following way and it returns nothing. echo $password | sudo -u user -S who am i Even logname command doesn't work in this way. echo $password | sudo -u user -S logname Can anyone please help? 回答1: When who is invoked with two arguments, the -m flag is activated. From the manual page: -m only hostname and user associated with stdin In your case, the standard input is a pipe, rather than a terminal, and who (or logname ) cannot

Unable to start Varnish 3 service on Centos 7

江枫思渺然 提交于 2019-12-12 06:12:38
问题 Because Varnish 3 package on Varnish's website is for RHEL 6, I was having issue installing it on Centos 7. Varnish install https://www.varnish-cache.org/installation/redhat Varnish 3 on Centos 7 bug https://bugs.centos.org/view.php?id=7563 http://repo.varnish-cache.org/redhat/varnish-3.0/el7/ I repoint the repo to Varnish 3 for Centos 7 and was able to install Varnish 3 successfully. however, I'm having issue start and restarting the service. [root@VR1gb ~]# service varnish restart

yum command : python version mismatch

和自甴很熟 提交于 2019-12-12 05:36:43
问题 I have Red Hat Linux (Red Hat Enterprise Linux Server release 6.5 (Santiago) ) and yum in not working with message There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.8 (default, Nov 7 2014, 11:45:08) [GCC 4.4.7

Python Popen can't open bash shell in CentOS/Red Hat

≯℡__Kan透↙ 提交于 2019-12-12 04:42:51
问题 I can't open a bash shell in CentOS with python 2.7, I'm able to do so in python 2.6.6 Debian. What has changed? I tried a simple bash process substitution: from subprocess import Popen cmd="""cat <<'EOF' this is test $unchanged EOF """ Popen('cat <(%s)' % cmd, shell=True, executable='/bin/bash') In Debian this works, in CentOS it doesn't: /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `cat <(cat <<'EOF'' The differences are: Debian : Python 2.6.6, /bin/sh is

How do I load a xml in Optaplanner

白昼怎懂夜的黑 提交于 2019-12-12 04:36:20
问题 I have created a MySQL database with entries similar to nurse roster, Now i need to send this data to optaplanner deployed on my server. To which file do i need to send it in the optaplanner folder deployed on server to get the results displayed on my webpage. I'm using Xstream to generate XML file. Can any one please give me brief on how to make this functionality work and get me the desired results. 回答1: The whole dataset serialization from and to XML is part of optaplanner-examples:

Some issues about installing gcc version 4.8.2 in redhat

依然范特西╮ 提交于 2019-12-12 04:07:13
问题 n order to install caffe,which is used for deep learing,i need to upgrade gcc version from 4.4.7 to 4.8.2 in redhat 6.5。 First run ./configure it worked, then make -j4, it will report options.c:11145: error: narrowing conversion of '-0x00000000000000001' from 'int' to 'short unsigned int' inside { } g++ -std=gnu++0x -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros

Dependency error while installing MariaDB10.1 on RHEL 7.1

坚强是说给别人听的谎言 提交于 2019-12-12 03:58:11
问题 I am trying to install MariaDB 10.1 on RHEL 7.1 using following link https://downloads.mariadb.org/mariadb/repositories/#mirror=Fibergrid&distro=RedHat&distro_release=rhel7-amd64--rhel7&version=10.1 I am Getting following error while installing --> Running transaction check ---> Package MariaDB-server.x86_64 0:10.1.20-1.el7.centos will be installed --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: MariaDB-server-10.1.20-1.el7.centos.x86_64 --> Processing