http://kashyapc.com/2014/01/27/virt-builder-to-trivially-create-various-linux-distribution-guest-images/I frequently use, part of the Libguestfs-tools package, as part of virt-builder my work flow. Rich has extensively documented it, still I felt it's worth pointing out again of its sheer simplicity.For instance, if you need to create a Fedora guest of size 100G, and of qcow2 format, it's as trivial as (no need for R Oot login):virt-builder fedora-20
Free 2gb PHP tutorial mysql tutorial no advertising bindable domain space application
justfree.com Free 2g/2g/php/mysql/ftp/subdomain/domain/no ads space
justfree.com free 2g capacity web space, limited 2g traffic per month, support PHP, free MySQL database tutorial, support FTP and Web upload management files, free of charge to provide 1 yourname.justfree.com two domain name, can bind their domain name, no ads.
Application Address: http://www.justfree.com
friko.pl Free
The following is my contact with the Linux work, after each installation of the server must do some operations, if there is no place to welcome Dashin point, thank you.
Installation system
Partition
(1)/boot partition to 100M; (2) Swap partition size is twice times of memory, the maximum 16G is sufficient, (3)/usr partition 50G; (4)/partition 100G; (5)/data partition 200G; (6)/TMP partition 100G
file...xxx. To cloud ... ", file) print (' Close connection ... ') def data_backup (folder): print (" Find directory to back up ... ", folder) Print ("Package the backup file, move to the appropriate directory ...") return '/tmp/backup20181103.zip ' Def data_backup_test (): print ("\ n Download the backup file from a remote cloud center from another machine to see if the file is lossless "def main (): zip_file = data_backup (" c:\\users\\alex\ Europe
The platform has a large number of pictures have been used, the order of magnitude of millions, almost 100G of space, whether it is too wasteful?
Copy Code code as follows:
Db.fs.files.find ({filename:/xxx/}). ForEach (function (n) {db.fs.files.update {filename:u.filename},{$set: { filename:newname}},false,true)}//Regular batch is changed to a fixed name for easy deletion.
Mongofiles-port 12345-d xxx Delete newname//mongofies to kill
————————————————————————————————–
The following is another My.ini configuration recommendation:
port=3306
Default-character-set=latin1
Default-storage-engine=innodb
Sql-mode= "Strict_trans_tables,no_auto_create_user,no_engine_substitution"
max_connections=120
query_cache_size=32m
#缓存数据表数量, set this parameter to see the open_tables in the System state (representing the total number of currently open data tables) and Opened_tables (representing the total number of open tables)
table_cache=2
......
table_cache=512
......
myisam_max_sort_file_size=100g
myisam_max_extra_sort_file_size=100g
myisam_sort_buffer_size=128m
key_buffer_size=1024m
read_buffer_size=512m
......
Thread_concurrency=8
Web caching based on reverse proxy:
such as Nginx,squid,mod_proxy (apache2 above and divided into Mod_proxy and Mod_cache)
Examples of Nginx
Copy Code code as follows:
#user nobody;
Worker_process
back_log=200
interactive_timeout=7200
query_cache_size=64m
......
table_cache=512
......
myisam_max_sort_file_size=100g
myisam_max_extra_sort_file_size=100g
myisam_sort_buffer_size=128m
key_buffer_size=1024m
read_buffer_size=512m
......
Thread_concurrency=8
Ix. Web caching based on reverse proxy
such as Nginx,squid,mod_proxy (apache2 above and divided into Mod_proxy
with a colon : split into multiple fields and print out the contents of the 1th column field
How to specify multiple delimiters in awk at the same time
For example, now there is a file Some.log file content as follows
Grape (100g) 1980
raisins (500g) 1990
Plum (240g) 1997
Apricot (180g) nectarine
(200g) 2008
Now we want to split the Some.log file by the "Fruit Name (weight) year".
$ Awk-f ' [()] ' {print $ $ $ $ $} ' Some.log
Grape
I. Purpose
When using the CentOS6.3 version Linux system, found that the root directory (/) of the space is not sufficient, and other directory space has a lot of free, so this article is mainly for the existing space to adjust. First, let's look at the space allocation of the system:
[Plain] View plaincopyprint?
01.[root@centos-78/]# df-h
02.Filesystem Size Used avail use% mounted on
03./dev/mapper/vg_centos-lv_root
50G 14G 34G 30%/
05.tmpfs 1.9G 0 1.9G 0%/dev/shm
06./DEV/SDA1 485M 37
network, using the most commonly used 10GBASE-SR transceiver, the longest transmission distance of only 33 meters. After the transformation, the OM3 fiber +mpo connector is used to support the transmission distance of the 10GBASE-SR. and can be within 100 meters distance, support the future next generation 40G or even 100G ethernet. At present, switch manufacturers have introduced 100G Ethernet interface B
creation time, but will be set to zero as needed in the future when the write operation is first performed from the virtual machine. Thick provisioning 0 (tick provision eager zeroed)Create a thick disk that supports clustering functions, such as Fault tolerance. Allocate the required space for the virtual disk when you create it. In contrast to the thick provisioning delay of setting the 0 format, the data retained on the physical device is set to zero during the creation process. The amount o
http://wubx.net/AllInnoDB Engine Optimizationinnodb_buffer_pool_size (interview must ask)The main storage of heat data, according to page to store, page is the smallest unit, or even by paragraph to storeRecommended value: 50%-75% of physical memory recommended for private database serverIf other services are available, then the "principle of 2/8" is recommended:For example, 100G of data, at least 10% of active data, it is recommended that buffer
--memory-block-size=8k--memory-total-size=100g-- Memory-access-mode=seq RunTest 8K random allocation.Sysbench--threads=12--events=10000--test=memory--memory-block-size=8k--memory-total-size=100g-- Memory-access-mode=rnd Run File IO Test IO testing is primarily used to test the load performance of IO. The main test option is--file-test-mode. There are also parameters to be concerned with--file-block-size 、--
the source code package you will not have to download it)# tar ZXVF mysql-5.5.38.tar.gz# CD mysql-5.5.38# cmake-dcmake_install_prefix=/usr/local/mysql-dsysconfdir=/etc-dmysql_datadir=/data/mysql-dmysql_tcp_port=3306 -dmysql_unix_addr=/tmp/mysqld.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dmysql_user=mysql# Gmake# gmake Install5. set up the MYSQL server configuration file:# Cd/usr/local/mysql# CP./support-files/my-huge.cnf/etc/my.cnf# VI/ETC/MY.CNF(Add or modify options in di
;my.ini
echo [MySQL] >>my.ini
echo Default-character-set=utf8 >>my.ini
echo [Mysqld] >>my.ini
Echo port=3306 >>my.ini
REM The following two sentences can be modified according to the actual situation
Echo Basedir=%realpath%/>>my.ini
Echo Datadir=%realpath%/data/>>my.ini
echo Default-character-set=utf8 >>my.ini
echo Default-storage-engine=innodb >>my.ini
Echo max_connections=100 >>my.ini
Echo query_cache_size=8m >>my.ini
Echo table_cache=256 >>my.ini
Echo tm
Tags: style color io for AR data CTI HTML log1 in-Shell for loop cleanup Remove the data by connecting MONGO each time echo "Begin ..." >>/root/time.log;echo $ (date +%y-%m-%d-%h:%m:%s) >>/root/time.log;for (i=1;i 2 MONGO shell in for loop cleanup Connect only once MONGO, in MONGO shell for loop cleanup [Email protected] ~]# more T.shecho "Begin ..." >>/root/t.log;echo $ (date +%y-%m-%d-%h:%m:%s) >>/root/t.log ;/usr/local/mongodb/bin/mongo 127.0.0.1:37017/test-uadmin-padmin T.js;echo $ (date +%y
, while adjusting to a separate table space, To solve this problem once and for all.First, add a 100G disk on the virtual machine, then partition the disk, then mount the disk to the/zabbixdb directory, back up the database, migrate the database storage location to the Zabbixdb directory, and then modify the database as a standalone tablespace mode, and then restore the database;1. Add disk and format disk[Email protected]_server/]# fdisk/dev/sdb[[ema
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.