redhat

python ImportError: No module named Tkinter

不问归期 提交于 2020-01-06 16:21:34
问题 Every time I tried to run import matplotlib I have error ImportError: No module named Tkinter the output result as listed below Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module> _backend

jboss-fuse-6.3.0.redhat-187 Fabric ssh script Error - Command not found: function

戏子无情 提交于 2020-01-06 06:42:19
问题 Created a Fabric Root started ./fuse and then executed bellow command fabric:create --wait-for-provisioning --verbose --clean --new-user admin --new-user-role admin --new-user-password admin --zookeeper-password zoopassword --resolver manualip --manual-ip 127.0.0.1 Started another fuse server ./fuse with ssh listening on 8102 Executed bellow command in the root console(fuse running at step 1 as root) fabric:container-create-ssh --host 127.0.0.1 --user admin --password admin --port 8102 --new

jboss-fuse-6.3.0.redhat-187 Fabric ssh script Error - Command not found: function

两盒软妹~` 提交于 2020-01-06 06:42:09
问题 Created a Fabric Root started ./fuse and then executed bellow command fabric:create --wait-for-provisioning --verbose --clean --new-user admin --new-user-role admin --new-user-password admin --zookeeper-password zoopassword --resolver manualip --manual-ip 127.0.0.1 Started another fuse server ./fuse with ssh listening on 8102 Executed bellow command in the root console(fuse running at step 1 as root) fabric:container-create-ssh --host 127.0.0.1 --user admin --password admin --port 8102 --new

Red Hat support for Docker

你离开我真会死。 提交于 2020-01-06 03:42:08
问题 We are currently running Red Hat 5. But I saw documentation that says docker is only supported on Red Hat 7. So we have to upgrade to Red Hat 7 or we can't use docker at all on RHEL 5? Alternatively we can consider to switch to Ubuntu. How do others solve the similar issue? 回答1: You will need to upgrade from RHEL5 to use Docker. The official Docker release deprecated RHEL6 support from 1.7 (and inadvertently broke it in 1.7.0 but fixed in 1.7.1). Support for RHEL6 was dropped in Docker 1.8.

软件包管理 之 Fedora / Redhat 软件包管理指南

你。 提交于 2020-01-06 01:13:50
作者: 北南南北 来自: LinuxSir.Org 提要: 在系统管理中,软件包的管理是最重要的,是系统管理的基础的基础;只有我们学会软件包的管理才能谈得上其它的应用;本文以目录式的文档格式,列出新手弟兄所面对的软件包的安装、更新、查询相对的文档,以及几个常用的软件包管理工具,比如 system-cofig-packages 、yum 、apt 等的文档目录等; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 正文 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 一、软件包管理的基础; 1、什么是RPM,RPM有何用? 初次为Fedora /Redhat 安装软件,我们应该学会RPM的安装和使用,也应该知道RPM是做什么用的;在下面文档中,您可能会有点收获; 请参考: 《RPM 的介绍和应用》 《RPM HOWTO 中译本》 《Maximum RPM》 2、system-config-packages 本地软件包管理工具; 如果您在安装系统时,把有些必要的软件忘记安装了,我们可以通过 system-config-packages 来安装;system-config-packages 是一个管理本地软件包的工具

RedHat系列的软件包管理

早过忘川 提交于 2020-01-06 01:13:36
本文主要是记录下RedHat系列的软件包管理。 内容分为以下三个部分:二进制包的管理,源代码包的管理,脚本安装 二进制包的管理 1.1概念 主要有RPM和YUM这两种包管理。 两种包管理各有用处,其中主要区别是:YUM使用简单但需要联网,YUM会去网上的YUM包源去获取所需要的软件包。而RPM的需要的操作精度比较细,需要我们做的事情比较多。 1.1.1RPM 主要的操作 1)卸载 rpm –e [--nodeps] sudo [解析] 需要注意的是在卸载软件包的时候若和其它包有依赖关系,可以用--nodeps来强制卸载 2)安装 rpm –i[v|h] [--excludedocs |prefix |test |replace[pkgs |files] |nodeps] sudo [解析] i为安装,v为显示详细信息,h为hash是进度信息 --excludedocs 不安装软件包的文档文件 --prefix PATH 将软件包安装到指定目录 --test 只对安装进行测试,并不实际安装(通常用来看下需要的依赖项) --replace[pkgs|files] 当出现冲突时或想强制覆盖时可以使用 --nodeps 不考虑依赖关系,强制安装。(这样比较麻烦,而且通常无法使用。这也是使用RPM的一些不方便的地方,而YUM则解决了这个问题,在安装的时候会自动将所需要的都一起安装了)

RedHat中敲sh-copy-id命令报错:-bash: ssh-copy-id: command not found

半腔热情 提交于 2020-01-05 08:30:14
RedHat中敲sh-copy-id命令报错:-bash: ssh-copy-id: command not found 在多台Linux服务器SSH相互访问无需密码, 其中进入一台Linus中,对其进行拷贝一下到host中,出现 会不会是用户的权限问题,在root下执行: [root@host6 hadoop]# ssh-copy-id /usr/bin/ssh-copy-id: ERROR: No identities found 为啥出现这个样子? (目前我也没有解决,若您知道其原因望告知一下!) 查了半天,我得到一下几个方案: 1.执行下面,去掉最小化安装的问题. yum -y install openssh-clients 结果: [root@host6 .ssh]# yum -y install openssh-clients Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Setting up Install Process Nothing to do [root@host6 .ssh]# exit exit [hadoop@host6 .ssh]$ sh-copy-id

Tomcat catalina.out logrotate on redhat not working properly

筅森魡賤 提交于 2020-01-05 08:29:26
问题 i am trying to roll the log catalina.out on a webserver using logrotate. i have been able to roll the log and a log catalina.out-dateext is created. but i notice that the log being written in the new file catalina.out-dateext . Is there something that need to be done on the webserver? Thank you 回答1: Add copytruncate in your /etc/pex/tomcat file. For more info about all the options: vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out 来源: https://stackoverflow.com/questions/18887682

Remove an Openshift server from RHC

萝らか妹 提交于 2020-01-05 02:49:27
问题 I'm very confused about this rhc client. I always read about cartridge and apps on tutorials over the interwebs, but what I see when i try to setup rhc e a server . I setup a server in this computer a few months ago. But I never used it. Now I created a new and personal account and I wanted to setup this computer to use rhc but my last setup is stuck there. I tried to rund rhc server remove <server-name> but it says the server is already in use. Asks me to change servers. But I only got one.

Linux操作系统的选择

半城伤御伤魂 提交于 2020-01-05 00:06:32
对于Linux操作系统的选择,我们可以根据不同需求,从七个方面来进行选择 1、桌面Linux,首选Ubuntu 2、Redhat红帽是Linux服务器端的操作系统,有版权,收费 3、Centos是免费版本的操作系统,没版权,其他和Redhat没区别 4、如果对安全系数要求很高的话,建议用debian或FreeBsd 5、如果想要使用数据库高级服务或者电子邮件网络应用的用户,选择SUSE 6、如果想要使用一些新的功能,可以选择Fedroa,它是Redhat和centos的一个预发布版 7、如果想要使用国货,可以尝试使用红旗Linux 来源: 51CTO 作者: zcq_linux 链接: https://blog.51cto.com/14480044/2460210