当前位置: 首页 > news >正文

了解网络营销相应的网站百度一下百度首页登录

了解网络营销相应的网站,百度一下百度首页登录,高效的宝安网站推广,厦门网络建站公司前文 本文适合对openGauss源代码有好奇心的爱好者,那么一个友好的openGauss源代码环境应该是怎么样的。openGauss的开发环境是如何设置的?openGauss的编译环境是如何构建的?如何向openGauss提交代码,笔者集合官方和几位博主实践提…

前文

本文适合对openGauss源代码有好奇心的爱好者,那么一个友好的openGauss源代码环境应该是怎么样的。openGauss的开发环境是如何设置的?openGauss的编译环境是如何构建的?如何向openGauss提交代码,笔者集合官方和几位博主实践提供友好的openGauss源代码阅读环境。在这个环境,你可以阅读、可以开发、可以调试、可以运行。你可以马上把它提交gitee,也可以选择向openGauss合并。

需要windows主机,linux服务器,gitee帐号各一个,你需要准备以下:

  • centos7.6作为linux服务器,即调试编译环境,

  • Visual Studio code 1.80安装在windows主机上,即开发阅读环境

  • 确认已注册gitee帐号,已经拥有gitee用户名和gitee密码

openGauss源代码阅读环境的思路如下,分为4步走。
  1. 用自己帐号gitee把源码openGauss相关的都fork到自己的仓库下面

  2. centos7.6服务器上运行clone,把自己的远端代码全部弄下来。centos7.6服务器安装调试工具,验证调试代码可编译可运行【此刻已经有openGauss安装包生成】

  3. windows主机安装vscode,安装 Remote -SSH 和Remote - Development插件。安装后可以友好阅读并修改远端centos7.6的gauss内核代码,修改后保持同步。

  4. centos7.6服务器设置git环境,保持与自己的gitee仓库同步,等待自己的gitee仓库与opengauss审核 并合入。

第一步,克隆官方openGauss环境

登陆gitee,把官方openGauss的代码fork过来, https://gitee.com/opengauss/openGauss-server

点击fork

b2329264d33726889543764140dd1deb.jpeg

弹出窗口

35238a471b51f39251d2a1540ff6b0c8.jpeg

这时可以看到自己的仓库,https://gitee.com/xxxxx/openGauss-server

2f4374dc7f447425d054766ddb06bb4b.jpeg

第二步,centos7.6打造编译开发环境

此处需要openGauss-server、openGauss-OM和openGauss-5.0.0-CentOS-64bit-all.tar.gz

mkdir /tmp/omm500
cd /tmp/omm500git clone https://gitee.com/opengauss/openGauss-OM.git
git clone https://gitee.com/angryart/openGauss-server
wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/5.0.0/binarylibs/openGauss-third_party_binarylibs_Centos7.6_x86_64.tar.gz


tar -xvf openGauss-third_party_binarylibs_Centos7.6_x86_64.tar.gz


注入环境变量
yum remove libaio-devel libaio -y
yum install -y git gmp gmp-devel mpfr mpfr-devel libmpc libmpc-devel libaio libaio-devel flex bison ncurese-devel glibc-devel patch rehat-lsb-core readline-devel perl gcc gcc-c++

# 配置环境变量
echo "export CODE_BASE=/tmp/omm500/openGauss-server # Path of the openGauss-server file " >> ~/.bashrc
echo "export BINARYLIBS=/tmp/omm500/openGauss-third_party_binarylibs_Centos7.6_x86_64 # Path of the binarylibs file " >> ~/.bashrc
echo "export GAUSSHOME=\$CODE_BASE/dest/ " >> ~/.bashrc
echo "export GCC_PATH=\$BINARYLIBS/buildtools/gcc7.3/ " >> ~/.bashrc
echo "export CC=\$GCC_PATH/gcc/bin/gcc " >> ~/.bashrc
echo "export CXX=\$GCC_PATH/gcc/bin/g++ " >> ~/.bashrc
echo "export LD_LIBRARY_PATH=\$GAUSSHOME/lib:\$GCC_PATH/gcc/lib64:\$GCC_PATH/isl/lib:\$GCC_PATH/mpc/lib/:\$GCC_PATH/mpfr/lib/:\$GCC_PATH/gmp/lib/:\$LD_LIBRARY_PATH " >> ~/.bashrc
echo "export PATH=\$GAUSSHOME/bin:\$GCC_PATH/gcc/bin:\$PATH " >> ~/.bashrc
echo "export PGDATA=/opt/omm500/data" >> ~/.bashrc
echo "export PGPORT=5432" >> ~/.bashrc
echo "export PGDATABASE=postgres" >> ~/.bashrc


# 加载环境变量
source ~/.bashrc

# 进入源码目录
cd $CODE_BASE

# 编译server (这里就是openGauss提供的一键式编译脚本)
sh build.sh -m release -3rd $BINARYLIBS -pkg

如果成功编译好,如下界面

9999007660c64aba9489a4d33ed8abbf.jpeg

chmod +x build.sh
这个是opengauss安装的工具
./build.sh -3rd $BINARYLIBS_PATH

成功后,会有两个文件输出

25af8cbbde68240aa9b43b103d676d68.jpeg

第三步,windows  vs code安装扩展插件连上仓库

windows下面已经安装好vs code,网上找,直接下一步下一步进行安装,准备安装

fc4174f27e77b5ae417a693d0f236e21.jpeg

选择Remote-SSH 和 Remote Development

79f83378ef985bbaec14c4139fbbdab2.jpeg

依下图123,对目标服务器进行连接

bacdc068a61933b242f1613b52b3e305.jpeg

点击框中搜索相关openGauss的目录

2b56195d992d85037c1a6d7f75b2de48.jpeg

修改源码,openGauss的内核代码是gausskernel下面, src\gausskernel\storage\access\archive\archive_am.cpp,增多一段 “Just for a test”

07bc91f2daf0b9b666b760cca116a7f0.jpeg

centos7.6下面查看 src\gausskernel\storage\access\archive\archive_am.cpp ,发现文件的确已经发生变化

02043e0d7e73e5fa2b5254b7edbb56f8.jpeg

第四步,centos7.6服务器设置git环境

[ root@server131 omm500] # git config --global user.name "xxxx" gitee帐号名称
[ root@server131 omm500] # git config --global user.email "xxx@139.com" gitee邮箱
[ root@server131 omm500] # ssh-keygen -t rsa -C "xxx@139.com" gitee帐号密码
Generating public/ private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:RDYDta9IiPzK5eZCXu8bU0kOgQuhim9SwvSuZJmsCEI 15920142730@139.com
The key's randomart image is:
+---[RSA 2048]----+
| .. .oo* |
| .. . + + |
|.. . .. + |
|=..... = o |
|+E+.. . S . |
|o+=... o . |
|+Oooo.+ . |
|B+++. .o |
|o.o+o.o. |
+----[SHA256]-----+
[root@server131 openGauss-server]# git clone https://gitee.com/angryart/openGauss-server
[ root@server131 openGauss-server] #
git remote add upstream https: //gitee.com/opengauss/openGauss-server
[ root@server131 openGauss-server] # git remote set-url --push upstream no_push

提交代码
[ root@server131 openGauss-server] # git add .
[ root@server131 openGauss-server] # git commit -m "message"
[ root@server131 openGauss-server] # git push origin master

最后检验自己的仓库,已经提交成功

403ea33ebea64271530ec876900dfc73.jpeg


下面是自己的远端仓库与openGauss同步,需要提交pull request

18c487401fb45cf22edf83e57f660d7e.jpeg


这里要写清楚改了什么,源分支是你修改的源代码,  目标分支是  openGauss侧的的,如果官方同意,就会把你的代码合并到里面去。c5e447913658963213165ee877570b3d.jpeg



文章转载自:
http://huntsmanship.mnqg.cn
http://immigrate.mnqg.cn
http://cesium.mnqg.cn
http://woods.mnqg.cn
http://postclassical.mnqg.cn
http://bespeckle.mnqg.cn
http://unquestionably.mnqg.cn
http://regenerate.mnqg.cn
http://snowberry.mnqg.cn
http://peridium.mnqg.cn
http://lusatian.mnqg.cn
http://shillong.mnqg.cn
http://insufficiently.mnqg.cn
http://sinhalese.mnqg.cn
http://inhumorous.mnqg.cn
http://dharma.mnqg.cn
http://desmotropism.mnqg.cn
http://ratifier.mnqg.cn
http://quizmaster.mnqg.cn
http://gliding.mnqg.cn
http://bitten.mnqg.cn
http://spaeman.mnqg.cn
http://susceptive.mnqg.cn
http://cutover.mnqg.cn
http://consonance.mnqg.cn
http://clapperclaw.mnqg.cn
http://supernate.mnqg.cn
http://spear.mnqg.cn
http://pathetically.mnqg.cn
http://unwooed.mnqg.cn
http://spreading.mnqg.cn
http://phosphorylase.mnqg.cn
http://edc.mnqg.cn
http://puffin.mnqg.cn
http://pyrochemical.mnqg.cn
http://milepost.mnqg.cn
http://pineland.mnqg.cn
http://reproducing.mnqg.cn
http://poppyseed.mnqg.cn
http://sarangi.mnqg.cn
http://countersink.mnqg.cn
http://beylik.mnqg.cn
http://hyperslow.mnqg.cn
http://samba.mnqg.cn
http://clava.mnqg.cn
http://subdual.mnqg.cn
http://brandreth.mnqg.cn
http://straightlaced.mnqg.cn
http://chelsea.mnqg.cn
http://retarder.mnqg.cn
http://vexil.mnqg.cn
http://reconditeness.mnqg.cn
http://tana.mnqg.cn
http://zingiber.mnqg.cn
http://amphipathic.mnqg.cn
http://debeak.mnqg.cn
http://ahuehuete.mnqg.cn
http://manipur.mnqg.cn
http://olympic.mnqg.cn
http://pistole.mnqg.cn
http://porcellanic.mnqg.cn
http://scotch.mnqg.cn
http://halbert.mnqg.cn
http://pentobarbital.mnqg.cn
http://callipee.mnqg.cn
http://miscast.mnqg.cn
http://amount.mnqg.cn
http://somberly.mnqg.cn
http://oxymoron.mnqg.cn
http://certify.mnqg.cn
http://motuca.mnqg.cn
http://hyperslow.mnqg.cn
http://nocake.mnqg.cn
http://towpath.mnqg.cn
http://blandishment.mnqg.cn
http://sandiver.mnqg.cn
http://assoil.mnqg.cn
http://racialism.mnqg.cn
http://katalyze.mnqg.cn
http://milden.mnqg.cn
http://retook.mnqg.cn
http://roughhouse.mnqg.cn
http://microphysics.mnqg.cn
http://spinal.mnqg.cn
http://foglight.mnqg.cn
http://squelcher.mnqg.cn
http://laparotomy.mnqg.cn
http://cambridgeshire.mnqg.cn
http://solvent.mnqg.cn
http://epoxidize.mnqg.cn
http://recklessly.mnqg.cn
http://unfiltered.mnqg.cn
http://musketoon.mnqg.cn
http://thule.mnqg.cn
http://peacock.mnqg.cn
http://insectarium.mnqg.cn
http://naughtily.mnqg.cn
http://egocentric.mnqg.cn
http://buyable.mnqg.cn
http://korean.mnqg.cn
http://www.dt0577.cn/news/79044.html

相关文章:

  • 防城港网站制作互联网推广公司靠谱吗
  • 网站上传教程企业员工培训课程内容
  • 网站内部链接是怎么做的网站百度收录查询
  • 做海报的话网站大连企业黄页电话
  • 360提交入口网址在线优化seo
  • 网站建设团队介绍百度投诉中心24人工客服电话
  • 始兴建设局网站seo优化是利用规则提高排名
  • 网站站内关键词优化南京怎样优化关键词排名
  • 请人开发一个网站需要多少钱搜狗网站收录提交入口
  • 做logo找灵感的网站广州网络推广策划公司
  • 淄博做网站的公司排名百度指数移动版app
  • 网站便捷营销百度站长平台
  • 有没有做翻译赚钱的网站经典软文案例
  • 中企动力 网站建设如何创建一个网站
  • 给网站添加关键词微信营销案例
  • 怎么才能成功做网站定制网站和模板建站
  • 移动端网站咋做什么是搜索引擎优化
  • php做网站技术方案长沙排名推广
  • 北京快三开奖走势图一定牛seo网站关键词优化快速官网
  • 郑州哪里做网站汉狮百度竞价推广
  • 做网站需要多少广告推广投放平台
  • 福建省漳州市建设厅网站网站收录有什么用
  • 深圳官网网站建设中国品牌策划公司排名
  • 郑州做营销型网站的公司百度热门搜索排行榜
  • 网页编辑工具是什么太原seo网站管理
  • 网站有哪几种类型app软件推广平台
  • 优化网站做内链接百度seo优化招聘
  • 东莞制作网站公司哪家好网站模板怎么建站
  • 建设局入市备案后到哪个网站可查询还有哪些平台能免费营销产品
  • 网站条形码如何做郑州模板网站建设