(Host), the pool has a lot of water (4GB of physical memory), there are 2 tanks (configured 2 VMS), the water tank has a certain capacity (configuration memory is 4GB), originally was empty (no boot).But now the tank 1 to raise fish, must put some water in so that the fish can survive (boot up). Minimum 1GB of memory is required. So the Tank 1 (VM1) to the pool
// display the version information and exit it -z doesn't know how to use it.
3, test the text file uniqtestthis is a test this is a test I am tank I love tank this is a test whom have a try WhoM have a try you have a try I want to abroad those are good men we are good men
IV, instance details [zhangy @ BlackGhost mytest] $ uniq-c uniqtest 3 this is a test 1 I am tank
restoration of all databases
1. All Database backups
Copy codeThe Code is as follows:# Innobackupex -- defaults-file =/etc/my. cnf -- user = root/home/tank/backup/
If the following error is reported:
Copy codeThe Code is as follows:InnoDB: Error: log file./ib_logfile0 is of different size 5242880 bytesInnoDB: than specified in the. cnf file 50331648 bytes!Innobackupex: Error: The xtrabackup child process has died at/usr/bin/innobackupex line 2679.
So
The hero of World War II is a game I like very much. Although it was a bit old in years, I always took it out for a long time.
There is no repair box in the reward task "tank attack". It is a pity to watch the damaged tanks. some people say that they want to use mod, but they haven't found the legendary tank repair mod for a long time and finally found a method to modify the archive. share it! Although prog
Document directory
Gof Definition
Motivation
Key points of the decorator Mode
Gof Definition
Dynamically add some additional responsibilities to an object. The decorator mode is more flexible than the subclass generation function.
Let's take a look at a small example. If we need to develop a tank for the game, apart from the tanks of different models, we also hope to add one or more of the following features to tanks in different scenarios: infra
backup and restore1, all database backups
The code is as follows
Copy Code
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/If you report the following error:InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytesInnodb:than specified in the. cnf file 50331648 bytes!Innobackupex:Error:The xtrabackup child process has died At/usr/bin/innobackupex line 2679.Workaround: Add the following in
error:or No ' datadir ' option in the group ' mysqld ' in MySQL options
Third, all database backup and restore
1, all database backup
Copy Code code as follows:
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/
If you report the following error:
Copy Code code as follows:
InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytes
Innodb:than specified in the. cnf f
database backup
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/
If the following error is reported:InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytesInnodb:than specified in the. cnf file 50331648 bytes!Innobackupex:Error:The Xtrabackup child process had died At/usr/bin/innobackupex line 2679.Workaround: Add the following to the MY.CNF mysqld
[Mysqld]
Innodb_log_file_size = 5M
For example, after mysql is installed and configured, there is a built-in mysql database with a user table to store users and user permissions. mongodb is the most relational database, is there a table like this.1. Master the permissions and understand the following four items.1. mongodb does not have a default administrator account. Therefore, you must first add an administrator account and enable permission authentication.2. Switch to the admin Database. The added account is the administrator
> Db.adduser (' Tank ', ' test '); Add an administrator account
{
"user": "Tank",
"readOnly": false,
"pwd": "988432606980d0695e4f668f6bbc643a",
"_id": ObjectId ("529e5d543b6a4608ac833429")
}
Third, open the user authority to start authentication
[Root@localhost zhangy]# vim/etc/mongodb.conf //Remove the comments in front of Auth=true
[root@localhost zhangy]#/etc/init.d/ Mongod
Bridge Bridging Mode (structural mode)Abstraction and implementationAbstractions should not be dependent on implementation details, and implementation details should be dependent on abstraction.Abstract b stability, implementation details B changeThe problem is that if abstract B is inherently unstable and likely to change because of its inherent causes, what happens?For exampleIf we need to develop a tank game that supports both PC and mobile, the ga
in a campaign to facilitate the exchange of information, our reconnaissance department set the key heights of the campaign to (X=0,y=0) and stipulates that each eastward increase -meters,xPlus1, each northward increased -meters,yPlus1. At the same time, the military Intelligence department also cracked the enemy's command signal sent to the tank, of which there are three kinds of signals (l,r,m) to control the movement of the
To:tank
> Use admin//Switch to admin database
Switched to DB admin
> Show Collections;
System.indexes
System.users//user table
> Db.system.users.find (); User table has no data
> Db.adduser (' Tank ', ' test '); Add an Administrator account
{
"User": "TestUser",
"ReadOnly": false,
"pwd": "988432606980d0695e4f668f6bbc643a",
"_id": ObjectId ("529e5d543b6a4608ac833429")
}
Third, open the user authority to start authenticat
In some cases, we may "over-use inheritance to extend the object's functions". This extension method lacks flexibility due to the static (compile-time) characteristics introduced by inheritance as a type; as the number of child classes increases (the number of extended functions), the combination of various child classes (the combination of extended functions) will lead to the expansion of more child classes (more inheritance ).
How can we enable "extension of object functions" to be implement
Today listen to a little summary of the proxy mode:Create a new interface Package Com.proxy; Public Interface Moveable { void Move ();}Create a new tank class implementation moveable PackageCom.proxy;ImportJava.util.Random; Public classTankImplementsmoveable{@Override Public voidMove () {//TODO auto-generated Method StubSYSTEM.OUT.PRINTLN ("Tank is running"); Try { NewThread (). Sleep (NewRa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.