Laboratory Equipment:Virtual two Redhat Linux 6.3-64bit system with virtual machine, and configure YumIP settings:SCSI Service side: 10.1.1.222SCSI client (Mount side): 10.1.1.1Experiment begins:1, install the software on the server and configure the shared disk, first in the virtual machine to add a new hard disk, the size is arbitrary. (Add 100G here)[[emailprotected]~]#fdisk-ldisk/dev/sda:21.5gb,21474836480 bytes255heads,63sectors/track,2610cylinde
Because the Elk server is built to allocate only 100G of disk space to the system. Later, because a large number of server logs need to be stored, only the Linux system disk space can be extended. The prerequisite is that Exsi has enough free disk space. Otherwise, the operation cannot be performed.1. Open the virtual machine's à edit the settings. Expands the disk size. I used to be 100G now to 1.1T650) t
Environment:Virtual machine OS is Windows 2008VSphere Version Information:The original system C disk is too small, almost full, need to expand.Steps:To be safe, first clone a virtual machine to a copy.Original size:Plus 100GStart the system and check the file system status after entering the system:You can see that the newly added 100G space is in the unallocated column:The system partition is followed by a partition, the expansion of the Welcome butt
OriginalFirst, the purposeWhen using the CentOS6.3 version of the Linux system, found that the root directory (/) is not enough space, and other directory space is very free, so this article is mainly for the existing space to adjust. First, let's look at the spatial distribution of the system:
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/dev/mapper/vg_centos-lv_root
50G 14G 34G 30%/
Tmpfs 1.9G 0 1.9G 0%/dev/shm
/DEV/SDA1 485M 37M 423M 8%/boot
/dev/mapper
A sparse file is a file in which most of the contents of a file are empty characters.The 100G disk file created by the virtual machine is, but the system does not immediately partition the space of 100G, but only to identify the virtual hard disk files are sparse files, until the data storage, then allocate space, which can greatly save disk utilization.When a sparse file is Cp/scp/split/cat, it becomes a n
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
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.