- 浏览: 2578870 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
RabbitMQ(1)Install on Redhat
First of all, I tried to install this software on redhat. I choose the general unix way to do that.
1. Check my yum
>yum --version
2.0.7
>python -V
2.3.4
update my yum repository
>sudo vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
#name=CentOS-$releasever – Base
name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.centos.org/centos/4/os/i386/
baseurl=http://vault.centos.org/4.9/os/i386/
gpgcheck=1
[updates]
#name=Red Hat Linux $releasever – Updates
name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.centos.org/centos/4/updates/i386/
baseurl=http://vault.centos.org/4.9/updates/i386/
gpgcheck=1
And change the /etc/yum.repos.d/CentOS-Base.repo content to
http://vault.centos.org/4.9 as well.
>sudo yum update
2. Install erlang
>sudo wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
>sudo yum update
>sudo yum install erlang
error message:
Finding updated packages
Downloading needed headers
Cannot find a package matching erlang
No actions to take
solution:
maybe, because my yum version is very old, the erlang repo is not working.
I copy the content to /etc/yum.conf
...snip..
[epel-erlang]
name=Erlang/OTP R14B
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0
[epel-erlang-source]
name=Erlang/OTP R14B - Source
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
But still, there is error message, maybe, the yum is too old. I will try to update that.
retrygrab() failed for:
http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
solution:
update my yum to 3.4.3, python to 2.6.1.
>which yum
>sudo vi /usr/bin/yum
>yum --version
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 30, in ?
from yum import logginglevels
ImportError: cannot import name logginglevels
solution:
I will try the version yum 3.2.19 Python 2.4.3
>wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2
>tar -jxvf Python-2.4.3.tar.bz2
>cd Python-2.4.3
>./configure --prefix=/usr/python2.4.3
>sudo mkdir /usr/python2.4.3
>make
>sudo make install
>sudo mv /usr/bin/python /usr/bin/python2.6.1
>sudo ln -s /usr/python2.4.3/bin/python /usr/bin/python
>python -V
Python 2.4.3
>wget http://yum.baseurl.org/download/3.2/yum-3.2.19.tar.gz
>sudo rm /usr/bin/yum
>sudo rm /usr/bin/yum-arch
>tar zxvf yum-3.2.19.tar.gz
>cd yum-3.2.19
>sudo make
>sudo make install
>yum --version
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
Solution:
>whereis python
python: /usr/bin/python /usr/bin/python2.3 /usr/lib/python2.3 /usr/include/python2.3 /usr/share/man/man1/python.1.gz
I am really unhappy about the yum version and the python version. Maybe, I will make it better next time. I will try other way to install erlang on my redhat.
3. Install erlang from source
>wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
>tar zxvf otp_src_R15B01.tar.gz
>cd otp_src_R15B01
>export LANG=C
>./configure --prefix=/usr/erlang
>make
>sudo make install
>cd /usr/erlang/bin
>erl
And I will link the erl file to /usr/bin
>sudo ln -s /usr/erlang/bin/erl /usr/bin/erl
4. I will install rabbitMQ
I will try to install rabbitmq with http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-2.8.2-1.noarch.rpm.
>sudo rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
>sudo yum install rabbitmq-server-2.8.2-1.noarch.rpm
This is not working because my yum version is low maybe.
I will try to install rabbitmq in general way.
>wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-generic-unix-2.8.2.tar.gz
>tar zxvf rabbitmq-server-generic-unix-2.8.2.tar.gz
>sudo mv rabbitmq_server-2.8.2 /opt/tools/rabbitmq_server-2.8.2
Start the server
>cd /opt/tools/rabbitmq_server-2.8.2
>sudo sbin/rabbitmq-server
Check the status and stop the server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop
references:
http://www.rabbitmq.com/install-windows.html
http://www.rabbitmq.com/install-generic-unix.html
http://mirrors.163.com/.help/centos.html?1304848825
http://sillycat.iteye.com/blog/1156180
http://nigelzeng.iteye.com/blog/1522554
http://zhb1208.iteye.com/blog/1330658
http://sillycat.iteye.com/blog/1155915
http://www.cxybase.com/201011/yum-python-error/
http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum
http://www.red-dove.com/python_logging.html#download
http://sillycat.iteye.com/blog/1154047
http://dennis-zane.iteye.com/blog/95572
First of all, I tried to install this software on redhat. I choose the general unix way to do that.
1. Check my yum
>yum --version
2.0.7
>python -V
2.3.4
update my yum repository
>sudo vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
#name=CentOS-$releasever – Base
name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.centos.org/centos/4/os/i386/
baseurl=http://vault.centos.org/4.9/os/i386/
gpgcheck=1
[updates]
#name=Red Hat Linux $releasever – Updates
name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.centos.org/centos/4/updates/i386/
baseurl=http://vault.centos.org/4.9/updates/i386/
gpgcheck=1
And change the /etc/yum.repos.d/CentOS-Base.repo content to
http://vault.centos.org/4.9 as well.
>sudo yum update
2. Install erlang
>sudo wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
>sudo yum update
>sudo yum install erlang
error message:
Finding updated packages
Downloading needed headers
Cannot find a package matching erlang
No actions to take
solution:
maybe, because my yum version is very old, the erlang repo is not working.
I copy the content to /etc/yum.conf
...snip..
[epel-erlang]
name=Erlang/OTP R14B
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0
[epel-erlang-source]
name=Erlang/OTP R14B - Source
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
But still, there is error message, maybe, the yum is too old. I will try to update that.
retrygrab() failed for:
http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
solution:
update my yum to 3.4.3, python to 2.6.1.
>which yum
>sudo vi /usr/bin/yum
>yum --version
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 30, in ?
from yum import logginglevels
ImportError: cannot import name logginglevels
solution:
I will try the version yum 3.2.19 Python 2.4.3
>wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2
>tar -jxvf Python-2.4.3.tar.bz2
>cd Python-2.4.3
>./configure --prefix=/usr/python2.4.3
>sudo mkdir /usr/python2.4.3
>make
>sudo make install
>sudo mv /usr/bin/python /usr/bin/python2.6.1
>sudo ln -s /usr/python2.4.3/bin/python /usr/bin/python
>python -V
Python 2.4.3
>wget http://yum.baseurl.org/download/3.2/yum-3.2.19.tar.gz
>sudo rm /usr/bin/yum
>sudo rm /usr/bin/yum-arch
>tar zxvf yum-3.2.19.tar.gz
>cd yum-3.2.19
>sudo make
>sudo make install
>yum --version
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
Solution:
>whereis python
python: /usr/bin/python /usr/bin/python2.3 /usr/lib/python2.3 /usr/include/python2.3 /usr/share/man/man1/python.1.gz
I am really unhappy about the yum version and the python version. Maybe, I will make it better next time. I will try other way to install erlang on my redhat.
3. Install erlang from source
>wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
>tar zxvf otp_src_R15B01.tar.gz
>cd otp_src_R15B01
>export LANG=C
>./configure --prefix=/usr/erlang
>make
>sudo make install
>cd /usr/erlang/bin
>erl
And I will link the erl file to /usr/bin
>sudo ln -s /usr/erlang/bin/erl /usr/bin/erl
4. I will install rabbitMQ
I will try to install rabbitmq with http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-2.8.2-1.noarch.rpm.
>sudo rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
>sudo yum install rabbitmq-server-2.8.2-1.noarch.rpm
This is not working because my yum version is low maybe.
I will try to install rabbitmq in general way.
>wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-generic-unix-2.8.2.tar.gz
>tar zxvf rabbitmq-server-generic-unix-2.8.2.tar.gz
>sudo mv rabbitmq_server-2.8.2 /opt/tools/rabbitmq_server-2.8.2
Start the server
>cd /opt/tools/rabbitmq_server-2.8.2
>sudo sbin/rabbitmq-server
Check the status and stop the server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop
references:
http://www.rabbitmq.com/install-windows.html
http://www.rabbitmq.com/install-generic-unix.html
http://mirrors.163.com/.help/centos.html?1304848825
http://sillycat.iteye.com/blog/1156180
http://nigelzeng.iteye.com/blog/1522554
http://zhb1208.iteye.com/blog/1330658
http://sillycat.iteye.com/blog/1155915
http://www.cxybase.com/201011/yum-python-error/
http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum
http://www.red-dove.com/python_logging.html#download
http://sillycat.iteye.com/blog/1154047
http://dennis-zane.iteye.com/blog/95572
发表评论
-
Update Site will come soon
2021-06-02 04:10 1708I am still keep notes my tech n ... -
Hadoop Docker 2019 Version 3.2.1
2019-12-10 07:39 319Hadoop Docker 2019 Version 3.2. ... -
Nginx and Proxy 2019(1)Nginx Enable Lua and Parse JSON
2019-12-03 04:17 480Nginx and Proxy 2019(1)Nginx En ... -
Data Solution 2019(13)Docker Zeppelin Notebook and Memory Configuration
2019-11-09 07:15 328Data Solution 2019(13)Docker Ze ... -
Data Solution 2019(10)Spark Cluster Solution with Zeppelin
2019-10-29 08:37 271Data Solution 2019(10)Spark Clu ... -
AMAZON Kinesis Firehose 2019(1)Firehose Buffer to S3
2019-10-01 10:15 351AMAZON Kinesis Firehose 2019(1) ... -
Rancher and k8s 2019(3)Clean Installation on CentOS7
2019-09-19 23:25 345Rancher and k8s 2019(3)Clean In ... -
Pacemaker 2019(1)Introduction and Installation on CentOS7
2019-09-11 05:48 369Pacemaker 2019(1)Introduction a ... -
Crontab-UI installation and Introduction
2019-08-30 05:54 486Crontab-UI installation and Int ... -
Spiderkeeper 2019(1)Installation and Introduction
2019-08-29 06:49 542Spiderkeeper 2019(1)Installatio ... -
Supervisor 2019(2)Ubuntu and Multiple Services
2019-08-19 10:53 392Supervisor 2019(2)Ubuntu and Mu ... -
Supervisor 2019(1)CentOS 7
2019-08-19 09:33 349Supervisor 2019(1)CentOS 7 Ins ... -
Redis Cluster 2019(3)Redis Cluster on CentOS
2019-08-17 04:07 391Redis Cluster 2019(3)Redis Clus ... -
Amazon Lambda and Version Limit
2019-08-02 01:42 457Amazon Lambda and Version Limit ... -
MySQL HA Solution 2019(1)Master Slave on MySQL 5.7
2019-07-27 22:26 560MySQL HA Solution 2019(1)Master ... -
RabbitMQ Cluster 2019(2)Cluster HA and Proxy
2019-07-11 12:41 481RabbitMQ Cluster 2019(2)Cluster ... -
Running Zeppelin with Nginx Authentication
2019-05-25 21:35 340Running Zeppelin with Nginx Aut ... -
Running Zeppelin with Nginx Authentication
2019-05-25 21:34 338Running Zeppelin with Nginx Aut ... -
ElasticSearch(3)Version Upgrade and Cluster
2019-05-20 05:00 349ElasticSearch(3)Version Upgrade ... -
Jetty Server and Cookie Domain Name
2019-04-28 23:59 430Jetty Server and Cookie Domain ...
相关推荐
sudo chkconfig rabbitmq-server on ``` 在RabbitMQ的默认配置中,它是以非托管模式运行的,这意味着你需要手动创建一个用户并赋予管理权限。这可以通过RabbitMQ的Web管理界面或命令行工具`rabbitmqctl`完成。参考`...
街道级行政区划shp矢量数据,wgs84坐标系,下载直接使用
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
街道级行政区划shp矢量数据,wgs84坐标系,下载直接使用
轻量级密码算法LBlock的FPGA优化实现.docx
街道级行政区划shp矢量数据,wgs84坐标系,下载直接使用
Git 资料 progit-zh-v2.1.1.pdf
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
篮球计分器FPGA附程序..doc
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
内容概要:本文档全面介绍了Linux开发的基础知识、应用场景、环境搭建、常用命令、Shell脚本编程以及C/C++和Python开发等内容。首先阐述了Linux开发的重要性及其在服务器端开发、嵌入式开发和系统运维等领域的广泛应用。接着详细讲解了如何选择合适的Linux发行版并安装系统,配置开发环境,包括安装必要的开发工具和配置SSH服务。文档还深入讲解了Linux基础命令,如文件和目录操作、文件内容查看与编辑、进程管理和权限管理。此外,介绍了Shell脚本编程的基本语法,包括变量、条件语句、循环语句和函数定义。针对C/C++和Python开发,文档分别讲解了编译器安装、程序编写与编译、调试方法及使用虚拟环境等内容。最后,简要介绍了Linux内核开发的相关知识,包括下载编译内核、内核模块开发等,并推荐了相关学习资源。 适合人群:对Linux开发感兴趣的初学者及有一定经验的研发人员,尤其是希望深入掌握Linux开发技能的开发者。 使用场景及目标:①掌握Linux开发环境的搭建与配置;②熟悉Linux基础命令和Shell脚本编程;③学习C/C++和Python在Linux下的开发流程;④了解Linux内核开发的基本概念和技术。 阅读建议:此文档内容丰富,涵盖面广,建议读者根据自身需求选择性阅读,并结合实际操作进行练习。特别是对于初学者,应先掌握基础命令和开发环境的搭建,再逐步深入到编程语言和内核开发的学习。
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
街道级行政区划shp数据,wgs84坐标系,直接使用。
内容概要:本文档《word练习题.docx》是一份详细的Word操作练习指南,涵盖了从基础到高级的各种功能。文档分为三个主要部分:内容编辑、页面布局和高效文档。内容编辑部分包括文本格式化、段落设置、项目编号、制表位、边框与底纹等练习;页面布局部分涉及分节符、分栏、页眉页脚、水印等设置;高效文档部分则聚焦于样式管理、导航窗格、题注、书签、超级链接、脚注与尾注、交叉引用等功能。每个练习都有具体的操作步骤,帮助用户掌握Word的各种实用技巧。 适合人群:适用于Word初学者及希望提高Word技能的中级用户,尤其是需要频繁使用Word进行文档编辑和排版的办公人员。 使用场景及目标:①帮助用户熟悉Word的基本操作,如文本编辑、格式设置等;②提升用户的文档排版能力,学会设置复杂的页面布局;③提高工作效率,掌握高效文档管理技巧,如样式应用、题注和交叉引用等。 其他说明:此文档不仅提供了具体的练习题目,还附带了详细的步骤说明,用户可以根据指引逐步完成每个练习。此外,文档中的一些练习涉及到智能文档和Office智能客户端的应用,有助于用户了解Word在企业级应用中的潜力。建议用户按照章节顺序逐步学习,实践每一个练习,以达到最佳的学习效果。
街道级行政区划shp数据,wgs84坐标系,直接下载使用。
全球腐败感知数据(2000-2023)——3000行 33个指标 关于数据集 该数据集包含3000行和33列,涵盖了2000年至2023年的腐败感知指数(CPI)数据和各种治理指标。它包括国家排名、分数和其他指标,如公共部门腐败、司法腐败、贿赂指数、商业道德、民主指数、法治、政府效率、经济指标和人类发展指数。 这些数据可用于: 腐败趋势分析 腐败对GDP、人类发展指数和治理的影响 跨国比较 数据可视化和机器学习模型 该数据集对研究人员、数据分析师、政策制定者和对研究全球腐败趋势非常有用。
毕业设计(论文) 基于FPGA的数字频率计设计.doc
街道级行政区划shp数据,wgs84坐标系,直接使用。
NTI1NDU3NTAyODMwOTQxMzI0M18xNzQ0Nzk1MTk1OTgz_6.JPG