一、安装前的准备工作

1、对网卡进行配置

[root@gbase8a ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=00:0C:29:2E:E9:71

TYPE=Ethernet

UUID=771cc37d-0811-4961-8648-b280f3f8232f

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

DNS1=192.168.204.1

IPADDR=192.168.204.131

NETMASK=255.255.255.0

GETEWAY=192.168.204.1

[root@gbase8a ~]#service network restart

2、检查系统是否安装了必须的软件包

安装系统时,如果没有选择“桌面”或“软件开发工作站”安装,或不清

楚系统安装情况时,请按如下方法检查系统中是否安装了必须的软件包:

# rpm -qa | grep boost

boost-signals-1.41.0-11.el6_1.2.x86_64

boost-wave-1.41.0-11.el6_1.2.x86_64

boost-python-1.41.0-11.el6_1.2.x86_64

boost-system-1.41.0-11.el6_1.2.x86_64

boost-date-time-1.41.0-11.el6_1.2.x86_64

boost-serialization-1.41.0-11.el6_1.2.x86_64

boost-graph-1.41.0-11.el6_1.2.x86_64

boost-test-1.41.0-11.el6_1.2.x86_64

boost-program-options-1.41.0-11.el6_1.2.x86_64

boost-regex-1.41.0-11.el6_1.2.x86_64

boost-1.41.0-11.el6_1.2.x86_64

boost-iostreams-1.41.0-11.el6_1.2.x86_64

boost-filesystem-1.41.0-11.el6_1.2.x86_64

boost-thread-1.41.0-11.el6_1.2.x86_64

# rpm -qa | grep libtool

libtool-ltdl-2.2.6-15.5.el6.x86_64

# rpm -qa | grep apr

apr-1.3.9-3.el6_1.2.x86_64

apr-util-ldap-1.3.9-3.el6_0.1.x86_64

apr-util-1.3.9-3.el6_0.1.x86_64

# rpm -qa | grep cpp

qpid-cpp-client-ssl-0.12-6.el6.x86_64

qpid-cpp-server-0.12-6.el6.x86_64

libmcpp-2.7.2-4.1.el6.x86_64

qpid-cpp-server-ssl-0.12-6.el6.x86_64

mcpp-2.7.2-4.1.el6.x86_64

abrt-addon-ccpp-2.0.4-14.el6.x86_64

qpid-cpp-client-0.12-6.el6.x86_64

# rpm -qa | grep elfutils

elfutils-libelf-0.152-1.el6.x86_64

elfutils-0.152-1.el6.x86_64

elfutils-libs-0.152-1.el6.x86_64

# rpm -qa | grep file

filesystem-2.4.30-3.el6.x86_64

mozilla-filesystem-1.9-5.1.el6.x86_64

file-libs-5.04-11.el6.x86_64

control-center-filesystem-2.28.1-25.el6.x86_64

fontpackages-filesystem-1.41-1.1.el6.noarch

rootfiles-8.1-6.1.el6.noarch

foomatic-db-filesystem-4.0-7.20091126.el6.noarch

file-5.04-11.el6.x86_64

libsndfile-1.0.20-5.el6.x86_64

libxkbfile-1.0.6-1.1.el6.x86_64

file-roller-2.28.2-6.el6.x86_64

boost-filesystem-1.41.0-11.el6_1.2.x86_64

desktop-file-utils-0.15-9.el6.x86_64

# rpm -qa | grep gcc

libgcc-4.4.6-3.el6.x86_64

# rpm -qa | grep gdb

gdbm-1.8.0-36.el6.x86_64

gdb-7.2-50.el6.x86_64

eggdbus-0.6-3.el6.x86_64

# rpm -qa|grep libgomp

libgomp-4.4.6-3.el6.x86_64

# rpm -qa|grep libicu

libicu-4.2.1-9.el6.x86_64

# rpm -qa|grep libproxy

libproxy-0.3.0-2.el6.x86_64

libproxy-python-0.3.0-2.el6.x86_64

libproxy-bin-0.3.0-2.el6.x86_64

# rpm -qa|grep neon

neon-0.29.3-1.2.el6.x86_64

# rpm -qa|grep pakchois

pakchois-0.4-3.2.el6.x86_64

# rpm -qa|grep patch

patch-2.6-6.el6.x86_64

# rpm -qa|grep perl

perl-CPANPLUS-0.88-119.el6_1.1.x86_64

perl-Params-Check-0.26-119.el6_1.1.x86_64

perl-Log-Message-0.02-119.el6_1.1.x86_64

perl-Compress-Zlib-2.020-119.el6_1.1.x86_64

perl-ExtUtils-CBuilder-0.27-119.el6_1.1.x86_64

perl-DBD-SQLite-1.27-3.el6.x86_64

perl-Time-HiRes-1.9721-119.el6_1.1.x86_64

perl-libxml-perl-0.08-10.el6.noarch

perl-version-0.77-119.el6_1.1.x86_64

perl-devel-5.10.1-119.el6_1.1.x86_64

perl-Compress-Raw-Zlib-2.023-119.el6_1.1.x86_64

perl-Log-Message-Simple-0.04-119.el6_1.1.x86_64

perl-Module-CoreList-2.18-119.el6_1.1.x86_64

perl-XML-Twig-3.34-1.el6.noarch

perl-CGI-3.51-119.el6_1.1.x86_64

perl-HTML-Parser-3.64-2.el6.x86_64

perl-libs-5.10.1-119.el6_1.1.x86_64

perl-5.10.1-119.el6_1.1.x86_64

perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_64

perl-Module-Load-Conditional-0.30-119.el6_1.1.x86_64

perl-IO-Compress-Base-2.020-119.el6_1.1.x86_64

perl-Archive-Tar-1.58-119.el6_1.1.x86_64

perl-Archive-Extract-0.38-119.el6_1.1.x86_64

perl-Module-Loaded-0.02-119.el6_1.1.x86_64

perl-DBI-1.609-4.el6.x86_64

perl-Module-Build-0.3500-119.el6_1.1.x86_64

perl-parent-0.221-119.el6_1.1.x86_64

perl-core-5.10.1-119.el6_1.1.x86_64

perl-XML-Dumper-0.81-6.el6.noarch

perl-Parse-CPAN-Meta-1.40-119.el6_1.1.x86_64

perl-libwww-perl-5.833-2.el6.noarch

perl-Pod-Escapes-1.04-119.el6_1.1.x86_64

perl-Pod-Simple-3.13-119.el6_1.1.x86_64

perl-Test-Harness-3.17-119.el6_1.1.x86_64

perl-Module-Load-0.16-119.el6_1.1.x86_64

perl-Package-Constants-0.02-119.el6_1.1.x86_64

perl-IO-Zlib-1.09-119.el6_1.1.x86_64

perl-File-Fetch-0.26-119.el6_1.1.x86_64

perl-Object-Accessor-0.34-119.el6_1.1.x86_64

perl-URI-1.40-2.el6.noarch

perl-CPAN-1.9402-119.el6_1.1.x86_64

perl-ExtUtils-Embed-1.28-119.el6_1.1.x86_64

perl-XML-Parser-2.36-7.el6.x86_64

perl-Module-Pluggable-3.90-119.el6_1.1.x86_64

perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64

perl-Term-UI-0.20-119.el6_1.1.x86_64

perl-Digest-SHA-5.47-119.el6_1.1.x86_64

perl-Crypt-SSLeay-0.57-16.el6.x86_64

perl-XML-Grove-0.46alpha-40.el6.noarch

perl-HTML-Tagset-3.20-4.el6.noarch

perl-Locale-Maketext-Simple-0.18-119.el6_1.1.x86_64

perl-IPC-Cmd-0.56-119.el6_1.1.x86_64

perl-IO-Compress-Zlib-2.020-119.el6_1.1.x86_64

perl-Test-Simple-0.92-119.el6_1.1.x86_64

perl-DBIx-Simple-1.32-3.el6.noarch

perl-Time-Piece-1.15-119.el6_1.1.x86_64

# rpm -qa|grep ppl

libpanelappletmm-2.26.0-3.el6.x86_64

poppler-utils-0.12.4-3.el6_0.1.x86_64

poppler-glib-0.12.4-3.el6_0.1.x86_64

wpa_supplicant-0.7.3-2.el6.x86_64

poppler-data-0.4.0-1.el6.noarch

poppler-0.12.4-3.el6_0.1.x86_64

gnome-applets-2.28.0-7.el6.x86_64

gdm-user-switch-applet-2.30.4-32.el6.x86_64

gnome-python2-applet-2.28.0-4.el6.x86_64

# rpm -qa|grep unzip

unzip-6.0-1.el6.x86_64

# rpm -qa|grep xz

xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64

xz-4.999.9-0.3.beta.20091007git.el6.x86_64

xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64

# rpm -qa | grep json

python-simplejson-2.0.9-3.1.el6.x86_64

json-c-0.10-2.el6.x86_64

二、安装GBase 8a

1、在Linux下创建一个用户

在安装GBase 8a 之前,需要在Linux 下使用root 用户创建一个新的操作系统用户,这个新用户用于GBase 8a 的安装以及安装后的运行。

具体操作如下,创建gbase 用户,并更改它的密码:

# useradd gbase

# passwd gbase

更改用户 gbase 的密码 。

新的 密码:

重新输入新的 密码:

passwd: 所有的身份验证令牌已经成功更新。

切换到gbase 用户,测试是否创建成功。

# su - gbase

$

2、解压安装文件

将安装包的压缩文件(如:GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2)复制到文件系统的某个目录下。进入该目录(下文假设将安装包放在了/home/gbase 目录下),切换到gbase 用户,在命令行模式下使用 tar 命令进行解压。解压命令如下:

# su - gbase

$ cd /home/gbase

$ tar xfj GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2

解压后,将会在解压目录下生成GBaseInstall 目录。

说明: GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2 中,“8.5.1.2- build5.4”为产品版本号,“redhat6.2-x86_64”为产品适用的操作系统和平台。

3、开始安装

使用gbase 用户,进入GBaseInstall 目录,执行GBase 8a 安装脚本Install_lin.sh,即可进行安装。具体命令如下:

$ cd /home/gbase/GBaseInstall

$ sh ./Install_lin.sh

4.安装过程示例

GBase 8a 的安装过程中,系统会自动询问创建GBase 8a 实例名称,安装路径,安装端口等询问信息,如果用户希望使用默认设置,则在提示询问信息后,直接“回车”即可,如果需要更改询问信息的设置,直接录入新的设置信息即可。如下:

$ sh ./Install_lin.sh

*******************************************************************************

**

Thank you for choosing GBase product!

Please read carefully the following licencing agreement before installing any

product:

TIANJIN GENERAL DATA TECHNOLOGY CO. LTD. LICENSE AGREEMENT

READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSETERMS

(COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWAREMEDIA PACKAGE. BY

OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF

YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE

TERMS. IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE

TO YOUR PLACE OF PURCHASE FOR A REFUND.

1. LICENSE TO USE. GeneralData grants you a non-exclusive and non-transferable

license for the internal use only of the accompanying software and documentation

and any error corrections provided by GeneralData(collectively "Software"), by the

number of users and the class of computer hardware for which the corresponding fee

has been paid.

2. RESTRICTIONS. Software is confidential and copyrighted. Title to Software and

all associated intellectual property rights is retained by GeneralData and/or its

licensors. Except as specifically authorized in any Supplemental License Terms,

you may not make copies of Software, other than a single copy of Software for archival

purposes. Unless enforcement is prohibited by applicable law, you may not

modify,decompile, or reverse engineer Software. You acknowledge that Software is

not designed, licensed or intended for use in the design,construction, operation

or maintenance of any nuclear facility. GeneralData disclaims any express or

implied warranty of fitness for such uses.No right, title or interest in or to any

trademark, service mark, logo or trade name of GeneralData or its licensors is granted

under this Agreement.

3. DISCLAIMER OF WARRANTY. Unless specified in this agreement, all express of

implied conditions, representations and warranties, including any implied warranty

of merchantability, fitness for aparticular purpose or non-infringement are

disclaimed, except to theextent that these disclaimers are held to be legally

invalid.

4. LIMITATION OF LIABILITY. To the extent not prohibited by law, in no event will

GeneralData or its licensors be liable for any lost revenue, profit or data, or for

special, indirect, consequential,incidental orpunitive damages, however caused

regardless of the theory of liability, arising out of or related to the use of or

inability to use software, even if GeneralData has been advised of the possibility

of such damages.In no event will GeneralData's libility to you, whether incontract,

tort (including negligence), or otherwise, exceed the amount paid by you for Software

under this Agreement. The foregoing limitations will apply even if the above stated

warranty fails of itsessential purpose.

5. TERMINATION. This Agreement is effective until terminated. Youmay terminate

this Agreement at any time by destroying all copies of Software. This Agreement

will terminate immediately without noticefrom GeneralData if you fail to comply with

any provision of this Agreement.Upon Termination, you must destroy all copies of

Software.

6. EXPORT REGULATIONS. All Software and technical data delivered underthis

Agreement are subject to US export control laws and may be subject to export or import

regulations in other countries. You agree to comply strictly with all such laws

and regulations and acknowledge that you have the responsibility to obtain such

licenses to export,re-export, or import as may be required after delivery to you.

7. CHINESE GOVERNMENT RESTRICTED. If Software is being acquired by or on behalf

of the Chinese Government , then the Government's rights in Software and accompanying

documentation will be only as set forth in this Agreement.

8. GOVERNING LAW. Any action related to this Agreement will be governed by Chinese

law: "COPYRIGHT LAW OF THE PEOPLE'S REPUBLIC OF CHINA","PATENT LAW OF THE PEOPLE'S

REPUBLIC OF CHINA","TRADEMARK LAW OF THE PEOPLE'S REPUBLIC OF CHINA","COMPUTER

SOFTWARE PROTECTION REGULATIONS OF THE PEOPLE'S REPUBLIC OF CHINA". No choice of

law rules of any jurisdiction will apply."

9. SEVERABILITY. If any provision of this Agreement is held to be unenforceable,

this Agreement will remain in effect with the provision omitted, unless omission

would frustrate the intent of the parties, inwhich case this Agreement will

immediately terminate.

10. INTEGRATION. This Agreement is the entire agreement between you and GeneralData

relating to its subject matter. It supersedes all prior or contemporaneous oral

or written communications, proposals,representations and warranties and prevails

over any conflicting or additional terms of any quote, order, acknowledgment, or

other communication between the parties relating to its subject matter during the

term of this Agreement. No modification of this Agreement will be binding, unless

in writing and signed by an authorize depresentative of each party. When the

translation document has the different meaning or has the conflicting views with

Chinese original text conflict, should take the laws and regulations promulgation

unit as well as the Generaldata issue Chinese original text as the standard.

*******************************************************************************

**

Do you accept the above licence agreement (Yes/No, default=No) ?

上述询问信息询问是否接受许可协议,同意键入“Y”,回车即可,否则直接回车选择默认“No”

选项,代表不同意接受,直接退出安装。

Y

*******************************************************************************

**

Welcome to install GBase products

*******************************************************************************

**

Please input the GBase software installation directory (Default:/home/gbase/GBase):

上述询问信息要求输入安装路径,如果用户希望使用默认路径,直接“回车”即可,否则输

入新的安装路径,本文档选择默认路径。

Installing all software packages ...

Software packages installation done.

*******************************************************************************

**

Welcome to create GBase database instance

*******************************************************************************

**

Please input the new database instance name (default: gbase8a):

上述询问信息要求输入用户创建一个gbase 8a 的实例名称,如果用户希望使用默认实例名

称,直接“回车”即可,否则输入新的实例名称,本文档选择默认实例名称。

Please input the port number for the new database instance (default:5258):

上述询问信息要求输入GBase 8a 实例使用的端口号,如果用户希望使用默认端口号,直接

“回车”即可,否则输入新的端口号,本文档选择默认端口号(按照1.6 已经检查过5258

端口没有被占用)。

GBase is creating the New 'gbase8a' instance ...

create gbase_host.cnf success

The host key file is genarate at GBASE_BASE/config/gbase_host.cnf.

Congratulations. Your GBase installation is successful.

Please refer to the product's manuals to start using GBase product

用户看到“create gbase_host.cnf success”提示信息后,说明在“$GBASE_BASE/config”目录下,成功创建了“gbase_host.cnf”文件。当显示“Your GBase installation is successful.”时,表示您已成功安装了GBase 8a 数据库产品。

5、获取license文件

首先,使用gbase 用户运行如下程序:gbase_gethostkey,本地生成一个32 字符的host 串:

$ gbase_gethostkey

hostkey: 8f1ba214e879c367ea35c17aaf3b8234

用户将32 字符的host 串文件发送给数据库厂商(请将您的hostkey 文件发到license@gbase.cn 中,同时,需要在mail 中附上安装GBase 8a 产品所使用的操作系统名称及版本),数据库厂商最终为用户提供授权文件(32 字符的license 串),用户将授文件拷贝到$home/gbase/GBase/config/目录下。具体如下:$ home/gbase/GBase /config/gbase.lic 文件中(如果不存在gbase.lic,需要手工建立)。

三、启停与登录

1、服务器的启停

成功安装GBase 8a 之后,用户执行以下命令启停gbase.server 服务,启动停止gbase.server 服务的操作系统用户为创建的linux 用户,本中是gbase 用户:

Ø 启动服务:

$ gbase.server start

Ø 停止服务:

$ gbase.server stop

Ø 重启服务:

$ gbase.server restart

2、登录和退出

$ gbase -uroot -p

Enter password:

GBase client 8.5.1.2 build 27952. Copyright (c) 2004-2013, GBase. All Rights

Reserved.

gbase> USE gbase;

Query OK, 0 rows affected (Elapsed: 00:00:00.03)

gbase>

3、退出

直接输入\q 即可退出登录。

gbase> \q

Bye

四、修改数据库root用户的密码

安装GBase 8a 后,系统会自动创建一个默认的数据库root 用户,默认密码为空。为了提高产品的安全性,我们建议用户登录GBase 8a 后,立即修改root 的密码,具体如下:

[gbase@gbase8a ~]$ gbase -uroot

GBase client 8.5.1.2 build 27952. Copyright (c) 2004-2013, GBase. All Rights

Reserved.

gbase> SET PASSWORD FOR root = PASSWORD('gbase8a');

Query OK, 0 rows affected

gbase> \q

修改完毕后,重新登录。

[gbase@gbase8a ~]$ gbase -uroot -pgbase8a

GBase client 8.5.1.2 build 55129. Copyright (c) 2004-2016, GBase.  All Rights Reserved.

五、卸载GBase 8a

当用户需要卸载GBase 8a 数据库时,需进入安装目录(如:/home/gbase/GBase),键入命令:sh ./server/bin/Uninstall_lin.sh。卸载程序开始执行后,将注销数据库服务、除安装目录、在用户允许的情况下删除实例目录,并自动删除环境变量。具体过程如下:

# su - gbase

$ cd /home/gbase/GBase/server/bin/

$ sh Uninstall_lin.sh

************************************************************************

*********

Welcome to uninstall GBase products

************************************************************************

*********

Do you want to delete GBase product (Yes/No, default=No) ?

y

The following is the list of installed GBase instances for current user:

/home/gbase/GBase/userdata/gbase8a 5258

Do you want to delete all instances (Yes/No, default=No) ?

y

The uninstallation is successful.

当显示“The uninstallation is successful.”时,说明卸载成功。

注:强烈建议用户不要在数据库安装目录下存放私有数据,以免在数据库卸载过程中造成不必要的损失。

六、升级和回退

1、升级

升级前需要首先停止服务,然后使用gbase 用户进入GbaseInstall 目录,执行 “./Install_lin.sh –U” 升级脚本,具体命令如下:

# cd /home/gbase/setup/GBaseInstall

#./Install_lin.sh -U

注:1)升级后会备份 GBase/server 与GBase/conf 目录到“~/GBase8a_BackUp_*.tar.bz2”文件中;

2)升级后,配置文件“~/GBase/config/gbase_8a_gbase8a.cnf”中的参数会被重置为初始值;

3)若集群从build6.8 以下版本升级到build6.8 以上(包括build6.8)版本,需要重新申请license;

2、回退

执行GBase 8a 的回退操作前,首先需要停止服务,然后使用tar 命令将备份文件解压到安装目录下。具体如下:

#tar -jxvf ~/GBase8a_BackUp_20150202161530.tar.bz2 -C ~/GBase

七、license文件过期

重新获取license文件

八、异常情况处理

1、安装不成功的处理

$rm - rf /gbase

$cd /home/gbase/setup/GbaseInstall

$sh clear.sh

2、卸载不成功的处理

$rm - rf /home/gbase/GBase

gbase安装教程的更多相关文章

  1. Linux+apache+mono+asp.net安装教程

    Linux+apache+mono+asp.net安装教程(CentOS上测试的) 一.准备工作: 1.安装linux系统(CentOS,这个就不多讲了) 2.下载所需软件 http-2.4.4.ta ...

  2. Greenplum 源码安装教程 —— 以 CentOS 平台为例

    Greenplum 源码安装教程 作者:Arthur_Qin 禾众 Greenplum 主体以及orca ( 新一代优化器 ) 的代码以可以从 Github 上下载.如果不打算查看代码,想下载编译好的 ...

  3. git 安装教程

    昆,简单说下安装教程1,安装Git2,安装TortoiseGit3,打开第一步安装的git工具GIT BASH

  4. Docker和Docker-compose安装教程以及docker-elk,docker-storm安装教程

    此安装教程仅供我自己安装配置时查看,其他的人不可以偷看!!! 安装Docker 1. Update package information, ensure that APT works with th ...

  5. RHEL 6.3 详细安装教程

    以前刚接触linux时,什么都不懂,为了学习,在电脑上安装双系统(原系统为Win7),吃过不少苦头,在网上搜教程,很多都是语焉不详,导致安装过程中战战兢兢.最近朋友面试运维,面试官有考他对linux安 ...

  6. Android Studio的下载和安装教程(从ADT到AS)

    之前一直使用的是Android development tools(简称ADT),后来说是google对ADT不再提供支持,然后一直在考虑是否把自己电脑换成Android Studio(简称AS),从 ...

  7. mysql快速导出数据库ER图和数据字典(附navicat11安装教程及资源)

    ♣ mysql使用navicat11快速导出数据库ER图 ♣ mysql使用navicat11快速导出数据库数据字典 ♣ navicat11 for mysql (这里是mysql5.7.12)专业版 ...

  8. Smokeping安装教程

    Smokeping安装教程 #Smokeping2.6.8安装教程 #2016.3.6 改编v1.0 #Linux运维技术交流 347163978   环境 CentOS release 6.4 (F ...

  9. (二)ADS1.2的安装教程以及使用 调试 (不会 AXD 调试工具)

    安装教程: 参考百度 http://jingyan.baidu.com/article/cdddd41c7db85253cb00e1ae.html 具体使用看: 杨铸的那本书(嵌入式底层软件驱动开发) ...

随机推荐

  1. AcWing 1049. 大盗阿福

    //f[i,j]表示所有走了i步,且当前位于状态j的所有走法 j=1表示选第i个 j=0表示不选 //如果j=0 那么表示不选第i个 那么就可以从f[i-1,0]和f[i-1,1]转移过来 //如果j ...

  2. ubantu中的apache中设置代理

    1.启用代理模块 a2enmod proxy proxy_balancer proxy_http 2.修改 /sites-available/000-default.conf 添加 <Virtu ...

  3. [POI2005]KOS-Dicing (最大流+二分)lg3425

    题面https://www.luogu.org/problemnew/show/P3425 题面说赢的最多的人最少赢几场,肯定是向二分的方向思考 建立源点向每一场比赛连容量为1的边,从每场比赛向参赛两 ...

  4. 给IDEA添加右键打开功能

    添加文件夹右键程序打开 开始运行regedit 找到 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell 1.右键shell目录新建项Idea 2. ...

  5. RN开发-组件View,Text

    1.外联js文件(RN自定义组件)        module.exports=Header; 导出模块         const Header=require('./header'); 导入外部j ...

  6. Python读取Excel,日期列读出来是数字的处理

    Python读取Excel,里面如果是日期,直接读出来是float类型,无法直接使用. 通过判断读取表格的数据类型ctype,进一步处理. 返回的单元格内容的类型有5种: ctype: 0 empty ...

  7. AntDesign(React)学习-4 登录页面提交数据简单实现

    github代码:https://github.com/zhaogaojian/jgdemo 全国肺炎,过节期间没地方去在家学习antd. 一.感觉antd pro项目太庞大了,可以学习下结构和代码风 ...

  8. ACWing 238 银河英雄传说

    最近带权并查集这块比较薄弱,直接看食物链看不懂,就老实一步步来了. 有一个划分为N列的星际战场,各列依次编号为1,2,…,N. 有N艘战舰,也依次编号为1,2,…,N,其中第i号战舰处于第i列. 有T ...

  9. python爬虫匹配实现步骤

    import requests,re url='https://movie.douban.com/top250' urlcontent=requests.get(url).text #正则 ''' 实 ...

  10. cc.formatStr()用法

    cc.formatStr() 第一个变量为含有 %s 或 %d 的字符串 后面依次为%s或%d对应的内容