redhat

Mosquitto在redhat中的安装

匿名 (未验证) 提交于 2019-12-03 00:32:02
环境:redhat 6 在root前提下,在 /etc/yum.repos.d/下新建mosquitto.repo文件 gedit /etc/yum.repos.d/mosquitto.repo 然后,从官网上找到RHEL6的文件内容: [home_oojah_mqtt] name=mqtt (RedHat_RHEL-6) type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/ gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/repodata/repomd.xml.key enabled=1 写入mosquitto.repo中。 之后就可以yum了, yum install mosquitto mosquitto-clients 接着一路选y。 安装完毕。 文章来源: Mosquitto在redhat中的安装

redhat 创建新用户 adduser与useradd区别

匿名 (未验证) 提交于 2019-12-03 00:30:01
(1)创建用户命令两条: adduser 用户名 用户名 (2)用户删除命令: 用户名 (只删除用户) userdel -r 用户名 (连同用户目录一起删除) (3)区别 会自动为创建的用户指定主目录、系统shell版本,会在创建时输入用户密码 需要使用参数选项指定上述基本设置,如果不使用任何参数,则创建的用户无密码、无主目录、没有指定shell版本。 文章来源: redhat 创建新用户 adduser与useradd区别

PIL /JPEG Library: “decoder jpeg not available”

落爺英雄遲暮 提交于 2019-12-03 00:29:33
问题 I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do. ""decoder jpeg not available"" Am I missing the JPEG decoder from my server? If so, how do I fix it? 回答1: You need to install jpeg library first and reinstall your PIL. For example, I'm using CentOS, to install libjpeg, I run sudo yum install -y libjpeg-devel It depends on what kind of linux you are using. And here you have to remove the old PIL rm -rf /usr/lib/python2.6/site

Ansible使用笔记(Redhat 6)

匿名 (未验证) 提交于 2019-12-03 00:22:01
git clone git://github.com/ansible/ansible.git --recursive 安装之前先把下载的 ansible 目录权限设置为可读写可执行: chmod -R 777 ansible/ 然后开始安装(启动): source ansible/hacking/env-setup 安装过程会有报错,不用管 安装完毕之后,会在 ansible 目录下产生一个 examples 目录,里面有 ansible.cfg 配置文件。 在 /etc/ 目录中创建文件夹 /ansible/ 然后发上面的 ansible.cfg 配置文件复制到 /etc/ansible/ 下面。 验证安装:ansible --version ssh-keygen -t rsa 后面直接敲入三次回车。就生成了公钥和密钥,目录在 /root/.ssh/ 中 将控制机的公钥 /root/.ssh/id_rsa.pub 复制到 被控制机的 /root/.ssh/ 中,并且重命名为“authorized_keys”没有后缀 验证公钥是否有效: 在控制机中直接输入 ssh root@被控制机IP 能直接进入被控制机的控制台,不需要输入密码。 好处是:被控制机的密码不会暴漏在配置文件 创建一个hosts文件,放入到控制机的 /etc/ansible/ 中。 内容参考如下(没有===): ==

redhat 7.6 find 命令

匿名 (未验证) 提交于 2019-12-03 00:15:02
1.按名字查找 find ./ -name filename //精确查找 ,./ 代表当前目录 -name 查询名称 filename具体文件名称 find ./ -name "*file*" //模糊查找 2.按时间查找 find ./ -mtime -2 //数字单位为天数,2天之内.+2 2天后的所有内容 find ./ -mmin -5 //代表5分钟之内,+5 5分钟后的所有内容 3.按文件大小查找 find ./ -size +10M //查找大于10M的文件 find ./ -size -10M //查找小于10M的文件 4.按对象类型查找 find ./ -type f   //按普通文件查找 find ./ -type l //按链接文件查找 find ./ -type d //按文件查找出来 find ./ -type f -or -type d //查找普通文件和目录一起显示 find ./ -maxdepth 1 -type f -or -type d //-maxdepth设置查找目录级别 find ./ -maxdepth 1 -type f -or -type d -exec ls -lh {} \ ; //使用exec 对查找出来的内容执行一次命令ls -lh ,{}代表查找到的内容,\结束 find ./ -perm /4000 -exec cp

RHEL7.3 已经GA了.

半腔热情 提交于 2019-12-02 23:58:41
今天晚上在PG微信群里,看到权叔说RHEL7.3驾临.于是,就到redhat官网( https://access.redhat.com/articles/3078 )看了一下,果然是这样的: Release General Availability Date redhat-release Errata Date* Kernel Version RHEL 7.3 2016-11-03 2016-11-03 RHSA-2016:2574-1 3.10.0-514 来源: CSDN 作者: msdnchina 链接: https://blog.csdn.net/msdnchina/article/details/53040198

RedHat 2017-pwn1题目复现

匿名 (未验证) 提交于 2019-12-02 23:57:01
碰到了RedHat 2017 的一道pwn,算是一道很经典的ROP,这里记录一下。 进程只有一个输入点: 检查保护机制: Arch: i386-32-little RELRO: Partial RELRO Stack: No canary found NX: NX enabled PIE: No PIE (0x8048000) 可以看见开启了NX 我们将进程拖进ida中查看: int __cdecl main() { int v1; // [esp+18h] [ebp-28h] puts("pwn test"); fflush(stdout); __isoc99_scanf("%s", &v1); printf("%s", &v1); return 1; } 进程流程非常简单,可以看到在scanf函数处存在溢出问题,我们可以使其执行system命令,而在进程中可以找到内置的system命令,但是我们无法在进程中获取到/bin/sh字符串,这里再次利用rop技术,调用scanf函数将/bin/sh字符串读取到进程段中,然后再执行system函数 这里介绍一下神器pwntools的ROP模块的用法,例如: rop.call('read', (0, elf.bss(0x80))) 其中 (0, elf.bss(0x80)) 是read函数的参数,即使call的函数参数只有一个

Redhat下安装SAP的相关

匿名 (未验证) 提交于 2019-12-02 23:56:01
Red Hat Enterprise Linux 6.x: Installation and Upgrade - SAP Note 1496410 Red Hat Enterprise Linux 7.x: Installation and Upgrade - SAP Note 2002167 Installing additional software packages You can also install or reinstall a package or a package group at a later point after the OS installation with the following commands, provided that your system can access the RHEL software channels via the officially supported ways (directly or via Red Hat Satellite/Proxy): For installing individual packages: yum install <package1> [<package2> [< package3> [...]]] where <package*> are the names of the

Centos及Redhat环境配置VNC远程图形化

匿名 (未验证) 提交于 2019-12-02 23:55:01
Centos7、Redhat7 #安装tigervnc-server软件包 [root@localhost ~]# mount /dev/cdrom /mnt mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# cd /mnt [root@localhost mnt]# cd Packages/ [root@localhost Packages]# rpm -ivh tigervnc-server-1.3.1-9.el7.x86_64.rpm [root@localhost Packages]# cd /lib/systemd/system [root@localhost system]# cp vncserver@.service vncserver@:2.service [root@localhost system]# vim vncserver@:2.service 将文件中的<User>用你当前的用户替换,将%i替换为:1 [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking # Clean any existing

Redhat 使用Yum安装更新rpm包

匿名 (未验证) 提交于 2019-12-02 23:41:02
为什么80%的码农都做不了架构师?>>> 1.卸载Redhat原有的yum工具: rpm -aq|grep yum|xargs rpm -e --nodeps 2.安装CentOS发行版中的yum工具: wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm rpm -ivh yum-* 3.更新库文件: wget http://sudone.com/download