CentOS部署過程

2021-07-24 08:21:49 字數 2622 閱讀 4398

因為電腦配置不行,並且部署原環境為centos,為了避免其他的部署問題.還centos試試

電腦配置不高,所以選擇了minimal(600m+).還有個everthing(7.4+g),乙個***(4g+)

首先ifconfig命令無法使用

正確使用方式是

ip addr
然後會發現並沒有獲取的ip

於是需要修改一下網絡卡配置

之前的版本預設網絡卡都是eth0,新的改為eno***

$vi /etc/sysconfig/network-script/ifcfg-eno*********x

//編輯修改ifcfg-eno***x

onboot=

"yes"

//開機自動啟動eth0網絡卡

mm_controlled=

"no"

//不通過networkmanager控制eth0

bootproto=

"dhcp"

//通過dhcp自動獲得ip

$service network restart

此時你應該已經有網了~

centos minimal安裝不能聯網的解決辦法

wget也沒有

好吧,安裝一下

yum -y install wget
然後就可以愉快的wget阿里的源了~

yum -y install mysql

yum -y install mysql-devel

yum -y install mariadb-server mariadb

systemctl start mariadb #啟動mariadb

systemctl stop mariadb #停止mariadb

systemctl restart mariadb #重啟mariadb

systemctl enable mariadb #設定開機啟動

- mysql -u root -p

#預設沒密碼

---------------------

set password for 使用者名稱@localhost = password('新密碼');

#修改密碼

grant

allprivileges

on *.* to root@'%' identified by

'mypassword'

with

grant

option;

#遠端連線許可權

flush privileges;

#重新整理許可權

----------------------

yum -y install go

yum -y install git

yum -y install emacs

yum -y install samba samba-client samba-common

[workspace]

comment = samba share dir

path = /opt/src/wps.cn/

public = yes

writable = yes

printable = no

read only = no

browseable = yes

[centos]

comment = samba share dir

path = /

public = yes

writable = yes

printable = no

read only = no

browseable = yes

smbpasswd -a 你的使用者名稱//設定訪問用的使用者,會提示輸入密碼

systemctl restart smb

chkconfig smb on //設定開機自啟

cd /usr/src  

wget

.io/releases/redis-3.0

.6.tar

.gz

tar xzf redis-3.0

.6.tar

.gz

cd redis-3.0

.6

make

install install 若干行..一直以為沒安裝成功呢

在centos 7下安裝redis和mongodb

yum -y install ruby  

yum -y install net-tools

redis:install on rhel5u10

in `require': cannot load such file -- redis (loaderror)
redis-cluster安裝和配置

sudo gem install redis

centOS部署lapis全過程

系統 centos 6.8 依賴環境 lua,luarocks,openresty 注意 由於lapis目前只支援lua5.1,所以不要安裝別的版本,安裝順序請依照本文的順序來操作,lua openresty luarocks lapis 1 lua 注意 centos 6.8自帶了乙個lua5.1...

CentOS7部署過程

接著的是 從零開始vcs verdi 安裝及破解過程 centos7 完整的部署硬體設計 環境,以搭建pulpino的全流程 一般linux最小化安裝時,wget不會預設被安裝 yum安裝 yum y install wget即可安裝 首先備份 etc yum.repos.d centos base...

Centos部署專案

nginx virtualenv uwsgi django mysql supervisor 部署專案 一 安裝python3 二 安裝mariadb,並授權遠端 grant all privileges on to root identified by mysql密碼 flush privileg...