centos系统下搭建以太坊
A. 如何搭建centos系统安装服务器
如果你对centos系统不了解,但是又想使用的话,建议你还是使用wdcp,不仅可以把支持nginx配置,还是支持apache,也带web控制面板,管理方便。
B. centos 搭建什么服务器比较好
安装操作系统
CentOS 6.2 ,CentOS-6.2-i386-bin-DVD1.iso(32位) ,CentOS-6.2-x86_64-bin-DVD1.iso(64位)
安装 CentOS时,选择 “Basic Server”
root密码:root123
CentOS 自带了ssh
安装完操作系统后,添加一个用户 dev
1
[root@localhost ~]$ useradd dev
然后密码设为 dev123
1
[root@localhost ~]$ passwd dev
给予 sudo 权限
1
2
3
4
[root@localhost ~]$ chmod u+w /etc/sudoers
[root@localhost ~]$ vim /etc/sudoers
# 在root ALL=(ALL) ALL 下 添加dev ALL=(ALL) ALL
[root@localhost ~]$ chmod u-w /etc/sudoers
设置上网
安装完操作系统后,还不能上网,配置DHCP方式上网:
1
2
3
4
5
6
7
8
9
10
11
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="00:0C:29:BD:E1:19"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=dhcp
USECTL=no
TYPE=Ethernet
PEERDNS=yes
#保存退出
sudo service network restart
或者,配置静态IP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DEVICE="eth0"
HWADDR="00:0C:29:10:F4:4C"
ONBOOT="yes"
BOOTPROTO=static
TYPE=Ethernet
IPADDR=192.168.0.162
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
#保存退出
#修改/etc/sysconfig/network
sudo vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.0.1
#保存退出,重启网络
sudo service network restart
如果失败,比如IP已被占用,换一个IP试试
修改DNS,即时生效
1
2
3
4
5
sudo vim /etc/resolv.conf
nameserver 192.168.0.1
# google提供的域名服务器
nameserver 8.8.8.8
search localhost
安装常用软件
有两种方式,方法一,去官网下载已经编译好的二进制文件,或源代码,编译安装方法二,用yum 命令安装,安装官方yum源里已经编译好的程序包。
第一种方式要敲很多命令,比yum麻烦,但是可以预先下载好文件,省略了下载的时间,整体速度比yum安装方式快很多,而且可以安装最新版。推荐第一种方式
第二种方式操作简单,敲打的命令少,但是往往yum源的更新速度跟不上各个软件的官网速度,用Yum安装的版本经常比较旧。
yum的命令形式一般是如下:yum [options] [command] [package ...],其中的[options]是可选的,选项包括-h(帮助),-y(当安装过程提示选择全部为”yes”),-q(不显示安装的过程)等等。[command]为所要进行的操作,[package …]是操作的对象。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#yum search package-name # 在线搜索包
#yum list installed # 列出所有已经安装的包
#
#sudo yum install package-name # 安装程序包
#sudo yum groupinsall group-name 安装程序组
#
#sudo yum remove package-name 删除程序包
#sudo yum groupremove group-name 删除程序组
#
#yum update #全部更新
#yum update package-name #更新程序包
#sudo yum groupupdate groupn-name 升级程序组
#sudo yum upgrade # 更新源列表
#yum upgrade package-name #升级程序包
#sudo yum clean all # 清除缓存
#更新
sudo yum update
#清理缓存
sudo yum clean all && yum clean metadata && yum clean dbcache
C. CentOS 6.5上搭建以太坊私有链,编译时报错: make: *** [geth] Error 1,请各位大神指教
build/env.sh go run build/ci.go install ./cmd/geth
make: *** [geth] Error 1
没有这个目录,或者这个目录权限不够
D. 如何在Centos系统的服务器上搭建自己的小网站
在CENTOS中可以通过安装APACHE来提供WEB服务,你的机器如果可以上网的话,直接运行如下命令安装该软件
yum install httpd
安装完成后将你的网站文件上传到CENTOS中
修改配置文件httpd.conf(修改网站文件主目录,以及端口等)
启动服务
service httpd start
正常的话就可以访问网站了
E. linux下ethtool的安装方法!!
1.下载安装包:ethtool-3.15.tar.gz,将其放入自己的路径下,解压:tarzxvfethtool-3.15.tar.gz
2.编译安装:
cdethtool-3.15
sudo./configure
sudomake
sudomakeinstall
3.ethtool-sethX[speed10|100|1000]//设置网口速率10/100/1000M
[plexhalf|full]//设置网口半/全双工
[autonegon|off]//设置网口是否自协商
例如:ethtool-
F. 如何在CentOS下快速安装conntrack-tools
就是最小化后在切换到最大化时就会出现这种情况,如果换个壁纸的话又好了,着是这么回事?
有个文件,先复制到root/temp目录下。然后解压安装就行了。详细的安装步骤如下:
先以root身份登入。
VMware Tools所在位置:VMware 安装路径 \VMware\VMware Workstation\linux.iso
[root@rd01 ~]# mount /cdrom
# 有时可能加载不了,这时就要先将系统关闭,再手动指定 ISO 映像,看下图
[root@rd01 ~]# cd /cdrom
[root@rd01 ~]# ls -a
[root@rd01 ~]# cp VMwareTools-5.5.1-19175.tar.gz /tmp
[root@rd01 ~]# cd /tmp
[root@rd01 ~]# tar zxpf VMwareTools-5.5.1-19175.tar.gz
[root@rd01 ~]# cd vmware-tools-distrib
[root@rd01 vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.
Installing the content of the package.
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
Thepath "/usr/lib/vmware-tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
[yes]
The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmhgfs mole for your running kernel.
The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
pcnet32 30153 0
Unloading pcnet32 mole
Trying to find a suitable vmxnet mole for your running kernel.
The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
Detected X.org version 6.8.
关闭控制台鼠标服务: [ 确定 ]
启动控制台鼠标服务: [ 确定 ]
Please choose one of the following display sizes (1 - 13):
# 显示分辨率,这里是以 1024x768 为例
# VMware Tools 安装的时候,会自动修改 X server 的配置文件
[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x1050"
[10] "1680x1050"
[11] "1600x1200"
[12] "1920x1200"
[13] "2364x1773"
Please enter a number between 1 and 13:
[2] 3
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.EL i686 [ELF]
Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686
Build Date: 04 May 2006
Build Host: x8664-build.centos.org
Before reporting problems, check
to make sure that you have the latest version.
Mole Loader present
OSKernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gccversion3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006P
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3131", Time: Mon Jun 12 20:57:34 2006
(++) Using config file: "/tmp/vmware-config0/XF86Config.3131"
(WW) VMWARE(0): Failed to set up write-combining range (0xf0000000,0x1000000)
X is running fine with the new config file.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定 ]
Guest filesystem driver: [ 确定 ]
DMA setup: [ 确定 ]
Guest operating system daemon: [ 确定 ]
The configuration of VMware Tools 5.5.1 build-19175 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" ring an XFree86 session.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start
Enjoy,
--the VMware team
[root@rd01 vmware-tools-distrib]# shutdown -r now
# 修改完成之后,重新启动计算机,让 VMware Tools 生效
G. Linux系统 CentOS 7怎么搭建集群
CentOS 7下怎么搭建高可用集群。高可用集群是指以减少服务中断时间为目的的服务器集群技术。它通过保护用户的业务程序对外不间断提供的服务,把因软件/硬件/人为造成的故障对业务的影响降低到最小程度。那么新的centos下怎么来搭建高可用集群。环境:本文以两台机器实现双集热备高可用集群,主机名node1的IP为192.168.122.168 ,主机名node2的IP为192.168.122.169 。
一、安装集群软件必须软件pcs,pacemaker,corosync,fence-agents-all,如果需要配置相关服务,也要安装对应的软件
二、配置防火墙
1、禁止防火墙和selinux
修改/etc/sysconfig/selinux确保SELINUX=disabled,然后执行setenforce 0或者reboot服务器以生效
2、设置防火墙规则
三、各节点之间主机名互相解析分别修改2台主机名分别为node1和node2,在centos 7中直接修改/etc/hostname加入本机主机名和主机表,然后重启网络服务即可。
配置2台主机的主机表,在/etc/hosts中加入
四、各节点之间时间同步在node1和node2分别进行时间同步,可以使用ntp实现。
五、各节点之间配置ssh的无密码密钥访问。下面的操作需要在各个节点上操作。
两台主机都要互相可以通信,所以两台主机都得互相生成密钥和复制公钥,相互的节点上的hosts文件是都要解析对方的主机名, 192.168.122.168 node1 192.168.122.169 node2
六、通过pacemaker来管理高可用集群
1、创建集群用户
为了有利于各节点之间通信和配置集群,在每个节点上创建一个hacluster的用户,各个节点上的密码必须是同一个。
H. CentOS安装时怎么实现如下要求
首先,你用vmware player工具创建一个虚拟机,把CentOS-6.3-i386-bin-DVD1.iso的镜像挂到虚拟机上,然后开启虚拟机电源就会自动启动到光驱的安装程序,前面四个都可以选择默认直接回车,然后输入你的主机名,下一步就是设置主机密码,要输入两次redhat,再下来选择时区,无特殊要求不选即可,然后就是定制磁盘,把磁盘分成./boot分区大小为500MB、/分区大小为6GB,/home分区大小为8GB,swap大小为2GB;(其中/、/home和swap采用LVM分区),一直到最后都默认回车就行了,重启之后进入到图形化界面需要设置注册码之类的跳过之,最后一步是设置selinux,把它设置成enforcing。就完成了。
I. 腾讯云centos如何搭建
注册账号后先要实名制,然后进入产品>云服务器>立即购买。
地域根据你客户所在地进行选择。
配置根据你的业务需要选择。
系统选择 Centos7
时长越久越便宜
最后付款就行了。
这样就完成了一个 centos系统搭建。

J. 本人新手,想装个Linux系统CentOS,不知道下下面的哪个
LIVECD.ISO可以直接做成一个光碟版的系统,记录到CD上边后用CD引导就有一个完整的CENTOS了。
如果是要安装在硬盘上,你去下CENTOS-6.4-X86_64-BIN-DVD1.ISO 好了。 TORRENT是一个BT种子,下载后用迅雷下就行了
