国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】

這篇具有很好參考價(jià)值的文章主要介紹了【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

題目:

skywalking 服務(wù)部署與應(yīng)用:?使用提供的 OpenStack 私有云平臺(tái),申請(qǐng)一臺(tái) centos7.9 系統(tǒng)的云主機(jī),使用提供的軟 件包安裝 Elasticsearch 服務(wù)和 skywalking 服務(wù),將 skywalking 的 UI 訪問(wèn)端口修改為 8888。 接下來(lái)再申請(qǐng)一臺(tái)CentOS7.9的云主機(jī),用于搭建gpmall商城應(yīng)用,并配置SkyWalking Agent, 將 gpmall 的 jar 包放置探針并啟動(dòng)。

步驟:

node1主機(jī):
#安裝Elasticsearch?
##安裝java環(huán)境
yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
##上傳elasticsearch-7.10.0-linux-x86_64.tar.gz軟件包,并解壓
tar -zxvf elasticsearch-7.10.0-linux-x86_64.tar.gz -C /usr/local
##創(chuàng)建運(yùn)行ES的用戶(hù)
useradd es
passwd es
##授權(quán)給新建用戶(hù)es文件夾的權(quán)限
?chown -R es /usr/local/elasticsearch-7.10.0/
##修改elasticsearch.yml文件
a、集群名稱(chēng),需確保不同的環(huán)境中集群的名稱(chēng)不重復(fù),否則節(jié)點(diǎn)可能會(huì)連接到錯(cuò)誤的集群上
cluster.name: my-application
b、節(jié)點(diǎn)名稱(chēng),默認(rèn)情況下當(dāng)節(jié)點(diǎn)啟動(dòng)時(shí)Elasticsearch將隨機(jī)在一份3000個(gè)名字的列表中隨機(jī)指定一個(gè)。如果機(jī)器上只允許運(yùn)行一個(gè)集群Elasticsearch節(jié)點(diǎn),可以用${HOSTNAME}設(shè)置節(jié)點(diǎn)的名稱(chēng)為主機(jī)節(jié)點(diǎn)。節(jié)點(diǎn)默認(rèn)名稱(chēng)為機(jī)器的主機(jī)名。
node.name: node-1
c、網(wǎng)絡(luò)設(shè)置,綁定服務(wù)到指定IP(提供服務(wù)的網(wǎng)口)
network.host: 192.168.100.50
http.port: 9200
d、集群主節(jié)點(diǎn)信息
cluster.initial_master_nodes: [“node-1”]
##設(shè)置內(nèi)核參數(shù)。
vi /etc/sysctl.conf
vm.max_map_count=262144
sysctl -p #執(zhí)行命令sysctl -p生效
##配置當(dāng)前用戶(hù)每個(gè)進(jìn)程最大同時(shí)打開(kāi)文件數(shù)
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
##斷開(kāi)終端重新連接
##切換es用戶(hù)
##啟動(dòng)
cd /usr/local/software/elasticsearch-7.10.0/bin
./elasticsearch -d
#安裝skywalking?
##上傳軟件包apache-skywalking-apm-es7-8.0.0.tar.gz,并解壓
##修改application.yml文件
? ?#集群配置使用單機(jī)版
cluster:
? selector: ${SW_CLUSTER:standalone}
? standalone:

? #數(shù)據(jù)庫(kù)使用elasticsearch7
storage:
? selector: ${SW_STORAGE:elasticsearch7}

? elasticsearch7:
? ? nameSpace: ${SW_NAMESPACE:""}
? ? clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:192.168.100.50:9200}
##啟動(dòng)OAP服務(wù)
[root@node1 apache-skywalking-apm-bin-es7]# ./bin/oapService.sh?
##部署SkyWalking UI服務(wù),修改端口為8888
server:
? port: 8888
##啟動(dòng)SkyWalking UI服務(wù):
[root@node1 apache-skywalking-apm-bin-es7]# ./bin/webappService.sh?
##查看是否開(kāi)啟11800與12800和8888端口
netstat -natpl
##瀏覽器訪問(wèn)IP:8888
mall主機(jī):
#修改主機(jī)名為mall
hostnamectl set-hostname mall
#修改hosts文件
vi /etc/hosts
192.168.100.50 ?mall
#安裝java環(huán)境
?yum install ?-y java-1.8.0-openjdk java-1.8.0-openjdk-devel ?
?java -version
?#安裝redis
?yum install ?redis -y ?
?#安裝nginx
?yum ?install nginx -y ?
?#安裝數(shù)據(jù)庫(kù)mariadb
?yum ?install mariadb mariadb-server -y ?
?#安裝zookeeper
?tar -zxvf zookeeper-3.4.14.tar.gz -C /root/
?#進(jìn)入到zookeeper-3.4.14/conf目錄下,將zoo_sample.cfg文件重命名為zoo.cfg,命令如下:
?cd /root/zookeeper-3.4.14/conf/
?mv zoo_sample.cfg zoo.cfg
#進(jìn)入到zookeeper-3.4.14/bin目錄下,啟動(dòng)ZooKeeper服務(wù),命令如下:
cd ../bin
./zkServer.sh start
#查看ZooKeeper狀態(tài),命令如下:
./zkServer.sh status
#安裝kafka
#安裝Kafka服務(wù),將提供的kafka_2.11-1.1.1.tgz解壓至/root目錄下,命令如下:
tar -zxvf /root/gpmall/kafka_2.11-1.1.1.tgz -C /root
#進(jìn)入到kafka_2.11-1.1.1/bin目錄下,啟動(dòng)Kafka服務(wù),命令如下:
cd /root/kafka_2.11-1.1.1/bin/
./kafka-server-start.sh -daemon ../config/server.properties
#使用jps或者netstat -ntpl命令查看Kafka是否成功啟動(dòng),命令如下:
[root@mall bin]# jps
6039 Kafka
1722 QuorumPeerMain
6126 Jps
#啟動(dòng)數(shù)據(jù)庫(kù)服務(wù)
修改/etc/my.cnf文件,添加字段如下所示:
[root@mall ~]# vi /etc/my.cnf
[mysqld]

init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
#啟動(dòng)數(shù)據(jù)庫(kù)命令如下
systemctl start mariadb ?
#設(shè)置root用戶(hù)的密碼為123456并登錄。
[root@mall ~]# mysqladmin -uroot password 123456
[root@mall ~]# mysql -uroot -p123456
Welcome to the MariaDB monitor. ?Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
#設(shè)置root用戶(hù)的權(quán)限,命令如下:
MariaDB [(none)]> grant all privileges on *.* to root@localhost identified by '123456' with grant option;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> grant all privileges on *.* to root@"%" identified by '123456' with grant option;
Query OK, 0 rows affected (0.001 sec)
#創(chuàng)建數(shù)據(jù)庫(kù)gpmall并導(dǎo)入/root/gpmall/目錄中的gpmall.sql文件。
MariaDB [(none)]> create database gpmall;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> use gpmall;
MariaDB [gpmall]> source /root/gpmall/gpmall.sql
#退出數(shù)據(jù)庫(kù)并設(shè)置開(kāi)機(jī)自啟。
MariaDB [gpmall]> exit
#設(shè)置數(shù)據(jù)庫(kù)開(kāi)機(jī)自啟
systemctl enable mariadb
#啟動(dòng)redis
#修改Redis配置文件,編輯/etc/redis.conf文件。將bind 127.0.0.1這一行注釋掉;將protected-mode yes 改為 protected-mode no
[root@mall ~]# systemctl start redis
[root@mall ~]# systemctl enable redis
#啟動(dòng)nginx
[root@mall ~]# systemctl start nginx
[root@mall ~]# systemctl enable nginx
#全局變量配置(刪除原有的192.168.100.60 mall)
[root@mall ~]# cat /etc/hosts
127.0.0.1 ? localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 ? ? ? ? localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.60 redis.mall
192.168.100.60 kafka.mall
192.168.100.60 mysql.mall
192.168.100.60 zookeeper.mall
#部署前端
[root@mall ~]# rm -rf /usr/share/nginx/html/*
[root@mall ~]# cp -rvf gpmall/dist/* /usr/share/nginx/html/
#修改Nginx配置文件/etc/nginx/nginx.conf,添加映射如下所示:
[root@mall ~]# vi /etc/nginx/conf.d/default.conf?
server {
? ? listen ? ? ? 80;
? ? server_name ?localhost;

? ? #charset koi8-r;
? ? #access_log ?/var/log/nginx/host.access.log ?main;

? ? location / {
? ? ? ? root ? /usr/share/nginx/html;
? ? ? ? index ?index.html index.htm;
? ? }
? ? location /user{
? ? ? ? proxy_pass http://127.0.0.1:8082;
? ? ? ? }
? ? ? ? location /shopping{
? ? ? ? proxy_pass http://127.0.0.1:8081;
? ? ? ? }
? ? ? ? location /cashier{
? ? ? ? proxy_pass http://127.0.0.1:8083;
? ? ? ? }
}
#重啟Nginx服務(wù),命令如下

[root@mall ~]# systemctl restart nginx
到此,前端部署完畢。
#部署后端
#將node-1節(jié)點(diǎn)的/opt/apache-skywalking-apm-bin-es7目錄下的agent目錄復(fù)制到mall節(jié)點(diǎn)下:
scp -r agent/ root@192.168.100.60:/root/
#修改SkyWalking agent配置文件:
[root@mall ~]# vi agent/config/agent.config

agent.service_name=${SW_AGENT_NAME:my-application}
agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:1}

collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.100.50:11800}
#采樣率修改:agent.sample_n_per_3_secs配置說(shuō)明:在訪問(wèn)量較少時(shí),鏈路全量收集不會(huì)對(duì)系統(tǒng)帶來(lái)太大負(fù)擔(dān),能夠完整的觀測(cè)到系統(tǒng)的運(yùn)行狀況。但是在訪問(wèn)量較大時(shí),全量的鏈路收集,對(duì)鏈路收集的客戶(hù)端(agent探針)、服務(wù)端(SkyWalking OAP)、存儲(chǔ)器(例如說(shuō)Elastcsearch)都會(huì)帶來(lái)較大的性能開(kāi)銷(xiāo),甚至?xí)绊憫?yīng)用的正常運(yùn)行。在訪問(wèn)量級(jí)較大的情況下,往往會(huì)選擇抽樣采樣,只收集部分鏈路信息。SkyWalking Agent在agent/config/agent.config 配置文件中,定義了agent.sample_n_per_3_secs配置項(xiàng),設(shè)置每3秒可收集的鏈路數(shù)據(jù)的數(shù)量
#將gpmall軟件包中提供的4個(gè)jar包,放置探針并啟動(dòng),通過(guò)設(shè)置啟動(dòng)參數(shù)的方式檢測(cè)系統(tǒng),啟動(dòng)命令如下:
[root@mall ~]# nohup java -javaagent:/root/agent/skywalking-agent.jar ?-jar gpmall/shopping-provider-0.0.1-SNAPSHOT.jar &
[1] 20086
[root@mall ~]# nohup: ignoring input and appending output to ‘nohup.out’

[root@mall ~]# nohup java -javaagent:/root/agent/skywalking-agent.jar ?-jar gpmall/user-provider-0.0.1-SNAPSHOT.jar &
[2] 20132
[root@mall ~]# nohup: ignoring input and appending output to ‘nohup.out’

[root@mall ~]# nohup java -javaagent:/root/agent/skywalking-agent.jar ?-jar gpmall/gpmall-shopping-0.0.1-SNAPSHOT.jar &
[3] 20177
[root@mall ~]# nohup: ignoring input and appending output to ‘nohup.out’

[root@mall ~]# nohup java -javaagent:/root/agent/skywalking-agent.jar ?-jar gpmall/gpmall-user-0.0.1-SNAPSHOT.jar &
[4] 20281
[root@mall ~]# nohup: ignoring input and appending output to ‘nohup.out’
# httpd訪問(wèn)網(wǎng)絡(luò)配置
[root@mall ~]# setsebool -P httpd_can_network_connect 1

訪問(wèn):

【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】,云計(jì)算

【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】,云計(jì)算

【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】,云計(jì)算文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-809010.html

到了這里,關(guān)于【全國(guó)職業(yè)院校技能大賽云計(jì)算賽項(xiàng)】的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包