RHEL

Can't start Cassandra after OS patch up

天大地大妈咪最大 提交于 2019-11-28 08:26:21
When I try to start Cassandra after patching my OS, I get this error: Exception (java.lang.AbstractMethodError) encountered during startup: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote; java.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote; at javax

RHEL + PHP : writing files outside /var/www/html?

和自甴很熟 提交于 2019-11-28 05:09:11
问题 I'm trying to open a file for read/write. I've been developing on Ubuntu, and have had no problems whatsoever. Now it's time to deploy to the RHEL server, and I discover there seems to be some kind of restriction on the location of a file to be written. On RHEL, I can't open the file unless it's under /var/www/html. I can't figure out how to allow other locations. I need to manipulate files on a different volume, for disk space management reasons. The following is the bit of code that works

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

浪尽此生 提交于 2019-11-28 04:03:57
I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or conflicts. Then I tried to start mysql with the following commands: chkconfig --levels 235 mysqld on service mysqld start And get Timeout error occurred trying to start MySQL Daemon. I checked my logs and see this error: [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist I'm not sure where to go from here. For

why do I get “Suspended (tty output)” in one terminal but not in others?

。_饼干妹妹 提交于 2019-11-27 22:58:20
Apparently I've done something strange/wrong in a tcsh shell, and now whenever I start an application in the background which prints to stdout the application is suspended (stopped). Weird thing is, this behavior only happens in this terminal; if I do the same in another terminal, the application just keeps running in the background and prints it output to the terminal. In the "broken" terminal I have to put the suspended application back into foreground (with fg ) to have it continue. Example: thehost:/tmp/test1(277)> ls -l & [3] 1454 thehost:/tmp/test1(278)> [3] + Suspended (tty output) ls -

Docker behind proxy that changes ssl certificate

扶醉桌前 提交于 2019-11-27 12:59:13
问题 I am trying to run the following docker command: docker run -i -t ubuntu /bin/bash But I get the error: Unable to find image 'ubuntu' (tag: latest) locally Pulling repository ubuntu 2013/11/28 14:00:24 Get https://index.docker.io/v1/images/ubuntu/ancestry: x509: certificate signed by unknown authority I know that our company replaces the SSL Certificate on the fly for https requests. I tried to trust our company's CA certificate by putting it in: /etc/pki/tls/certs/ca-bundle.crt and /etc/pki

On linux SUSE or RedHat, how do I load Python 2.7

巧了我就是萌 提交于 2019-11-27 10:31:32
Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. Instructions to download source and install: https://www.python.org/download/ NOTE: You should check for the latest version of python 2.7.x, as it gets updated frequently. Currently (Oct 2017), the latest version is 2.7.14 though this comment will get old and new versions likely will be released every 6 months

Best practice to run Linux service as a different user

元气小坏坏 提交于 2019-11-27 09:59:20
Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d . What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use something like: su my_user -c 'daemon my_cmd &>/dev/null &' But this seems a bit untidy... Is there some bit of magic tucked away that provides an easy mechanism to automatically start services as other, non-root users? EDIT: I should have said that the processes I'm starting in

RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 (续三)

陌路散爱 提交于 2019-11-27 09:41:52
RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 [日期:2017-05-26] 来源:Linux社区 作者:sound [字体: 大 中 小 ] 创建数据库中... 数据库安装完成 以grid用户查看集群状态及监听状态 [grid @rhel6 : /home/grid ]$crsctl status resource -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE rhel6 ora.DSG.dg ONLINE ONLINE rhel6 ora.LISTENER.lsnr ONLINE ONLINE rhel6 ora.asm ONLINE ONLINE

Installing rabbitmq-server on RHEL

微笑、不失礼 提交于 2019-11-27 06:49:13
问题 When trying to install rabbitmq-server on RHEL: [ec2-user@ip-172-31-34-1XX ~]$ sudo rpm -i rabbitmq-server-3.3.5-1.noarch.rpm error: Failed dependencies: erlang >= R13B-03 is needed by rabbitmq-server-3.3.5-1.noarch [ec2-user@ip-172-31-34-1XX ~]$ rpm -i rabbitmq-server-3.3.5-1.noarch.rpm error: Failed dependencies: erlang >= R13B-03 is needed by rabbitmq-server-3.3.5-1.noarch I'm unsure why trying to rpm install isn't recognizing my erlang install since running $ erl gives: [ec2-user@ip-172

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

☆樱花仙子☆ 提交于 2019-11-27 05:16:16
问题 I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or conflicts. Then I tried to start mysql with the following commands: chkconfig --levels 235 mysqld on service mysqld start And get Timeout error occurred trying to start MySQL Daemon. I checked my logs and see this error: [ERROR] Fatal error: Can't open