RHEL

如何把LINUX服务器上的数据发到WINDOWS共享出来的共享盘上

天大地大妈咪最大 提交于 2019-12-07 09:18:51
今天去一用户,系统是通过堡垒机网页方式访问,处理完问题,想把一些信息取下来,不能开启 ssh,FTP,怎么取下来呢 问对方,说有windows网络共享,要不把资料放上去。 怎么办? 突然想到RHCE课上讲了SAMBA,不就是作这个事情的吗。 马上翻来教材,顺带再熟悉一下操作。 先看看服务器共享了什么呢。 使用 smbclient 嗯,没有安装 马上安装。 yum install sambaclient 天,没有配置 YUM 马上配置yum,还好,不能上外网,但本地正好安装iso文件 配置好yum后,再去安装 sambaclient ,cifs-utils smbclient -L //server -U username 嗯,看到了服务器共享出来的共享名字,看来很兴奋。 然后,在本地挂载 mkdir /smb mount -t cifs -o username=ourusername,password=ourpassword //server /smb 怎么挂不上去呢 ,一直报文件类型,挂载选项等错误,难到搞错了, 再一看,发现服务器端没有到最终共享名字,加上后,就好了,最终语法为: mount -t cifs -o username=ourusername,password=ourpassword //server/software /smb 马上把文件传上去。 搞完了,卸载,

How to make SSL work in pip3?

孤者浪人 提交于 2019-12-07 05:37:17
问题 Python 3.6.5 is built from source and installed along with Python 2.7.5. python3 opens the python terminal, however pip3 fails to install any package with SSL error. [root@servername openssl-OpenSSL_1_1_1-pre5]# pip3 install flask pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting flask Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL

Using strace fixes hung memory issue

倾然丶 夕夏残阳落幕 提交于 2019-12-07 01:04:26
问题 I have a multithreaded process running on RHEL6.x (64bit). I find that the process hangs and some threads (of the same process) crash most of the time when I try to bring up the process. Some threads wait for shared memory between the threads to get created (I can see that all of it does not get created). But when I use strace , the process does not hang and it works just fine (all of the memory that is supposed to be created, gets created). Even interrupting strace after the memory gets

在OS(RHEL6.4)+Arch(ppc64)环境下安装Ganglia

两盒软妹~` 提交于 2019-12-07 00:45:17
前言 最近IBM提供了一台powerpc给我们测试使用.在上面装出几个虚拟机,准备加入到云平台中. 同时为了监控主机状况,准备在上面安装nagios和ganglia. nagios的安装同x86_64环境下相差不多,但是ganglia的安装过程就稍微复杂些,写文记录如下. 学习笔记,以备查阅. @Author duangr @Website http://my.oschina.net/duangr/blog/183776 1. 相关环境 项 值 Issue Red Hat Enterprise Linux Server release 6.4 (Santiago) OS Linux 2.6.32-358.el6 Arch ppc64 2. 安装目标 目标是预先安装好ganglia所依赖的rpm包,后续就可以参考 ganglia的安装步骤 来具体安装. rpm -q gcc glibc glibc-common rrdtool rrdtool-devel apr apr-devel expat expat-devel pcre pcre-devel gcc-4.4.7-3.el6.ppc64 glibc-2.12-1.107.el6.ppc64 glibc-2.12-1.107.el6.ppc glibc-common-2.12-1.107.el6.ppc64 package

Docker - Creating base image with RHEL iso

∥☆過路亽.° 提交于 2019-12-07 00:22:38
问题 I am trying to use a RHEL image for my project. Is there a way to create a base image with my RHEL 6's iso file? I am not using Fedora as it is beneficial for my project to use the RHEL distribution instead. 回答1: If you want a fair bit of control, you may want to look into the script in the Docker contrib repository on Github. One of them is for "yum" based images, Centos in this case, but there's no reason it shouldn't work for RHEL. It bootstraps itself through a series of YUM installs. If

How can enable udev sync successfully in docker?

此生再无相见时 提交于 2019-12-07 00:12:21
问题 I have downloaded and install the static-linked docker 1.6.1 from this site, and run it on RHEL 7.1 : [root@localhost bin]# ./docker -d WARN[0000] Udev sync is not supported. This will lead to unexpected behavior, data loss and errors INFO[0000] +job init_networkdriver() INFO[0000] +job serveapi(unix:///var/run/docker.sock) INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] -job init_networkdriver() = OK (0) INFO[0000] Loading containers: start. INFO[0000] Loading

How can I define the run order of vagrant middleware plugins?

可紊 提交于 2019-12-06 19:25:25
问题 I'm creating a Red Hat Enterprise Linux 7 VM in VirtualBox with vagrant. If I have a base box that both doesn't have the VirtualBox guest additions, and isn't registered, then I'd manually need to do the following: Register the box with subscription-manager Install guest additions The reason that I'd need to perform registration first, is that to install guest additions, I'd need to install some extra packages. Now, there are 3rd-party vagrant plugins for both of these tasks: vagrant

Deploying docker swarm without using docker machine

心不动则不痛 提交于 2019-12-06 19:24:01
问题 Currently I have a bunch of RHEL7 VMs running on RackSpace and want to deploy docker swarm for testing purpose. The Docker Docs only describes the method to deploy docker swarm by using docker machine. Question: Since VirtualBox cannot be used in VMs, are any other ways such that I can directly deploy docker swarm on my VMs without using docker machine? 回答1: In fact Docker documentation offers you how to set up a swarm cluster 'manually' without using docker-machine: Create a swarm for

redhat7 安装163网络源

拥有回忆 提交于 2019-12-06 18:40:56
1、首先查看redhat 7.0系统本身所安装的那些yum 软件包: [root@linuxprobe ~]# rpm -qa | grep yum yum-utils-1.1.31-24.el7.noarch yum-langpacks-0.4.2-3.el7.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-rhn-plugin-2.0.1-4.el7.noarch PackageKit-yum-0.8.9-11.el7.x86_64 yum-3.4.3-118.el7.noarch 2、卸载这些软件包; [root@linuxprobe ~]# rpm -e yum-3.4.3-118.el7.noarch --nodeps [root@linuxprobe ~]# rpm -e yum-utils-1.1.31-24.el7.noarch --nodeps [root@linuxprobe ~]# rpm -e yum-rhn-plugin-2.0.1-4.el7.noarch --nodeps [root@linuxprobe ~]# rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps [root@linuxprobe ~]# rpm -e yum

如何把LINUX服务器上的数据发到WINDOWS共享出来的共享盘上

邮差的信 提交于 2019-12-06 16:58:41
今天去一用户,系统是通过堡垒机网页方式访问,处理完问题,想把一些信息取下来,不能开启 ssh,FTP,怎么取下来呢 问对方,说有windows网络共享,要不把资料放上去。 怎么办? 突然想到RHCE课上讲了SAMBA,不就是作这个事情的吗。 马上翻来教材,顺带再熟悉一下操作。 先看看服务器共享了什么呢。 使用 smbclient 嗯,没有安装 马上安装。 yum install sambaclient 天,没有配置 YUM 马上配置yum,还好,不能上外网,但本地正好安装iso文件 配置好yum后,再去安装 sambaclient ,cifs-utils smbclient -L //server -U username 嗯,看到了服务器共享出来的共享名字,看来很兴奋。 然后,在本地挂载 mkdir /smb mount -t cifs -o username=ourusername,password=ourpassword //server /smb 怎么挂不上去呢 ,一直报文件类型,挂载选项等错误,难到搞错了, 再一看,发现服务器端没有到最终共享名字,加上后,就好了,最终语法为: mount -t cifs -o username=ourusername,password=ourpassword //server/software /smb 马上把文件传上去。 搞完了,卸载,