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種子,下載後用迅雷下就行了
