I have written a series of articles. here I will summarize them in a single article for ease of viewing. This article targets Ubuntu1310server. Host installation
I have written a series of articles. here I will summarize them in a single article for ease of viewing. This article is intended for Ubuntu 13.10 server.Host installation check whether the CPU supports virtualization
root@kvmhost:~# egrep '(vmx|svm)' --color=always /proc/cpuinfoflags: fpu vme de pse
Uses of grains and pillar:Grains: Basic data information for storing minion;Pillar: Used to store the data information that master assigns to minion.Storage areas for grains and pillar:Grains: Metadata is stored on the Minion side;Pillar: Metadata is stored on the master side.Update methods for grains and pillar:Grains: Update at minion startup;Pillar: Metadata is stored on the master side and refreshed with saltutil.refresh_pillar for greater efficiency and flexibility.Simple use of 1.Grains(1.
1. due to the different characteristics of the language, the design mode and implementation of the difficulty will be different2. Some patterns have been built into the language, such as the iterator pattern. 3. The singleton mode can be directly implemented with module-level variables .4. Normal Factory mode can be implemented directly by passing in "class name" as parameterSingleton Mode Example:12_eg.pyClass Singleclass:def __init__ (self,x=0):self.x = 0sc = Singleclass ()Def
Do not seem to see a Chinese explanation ng2 introductory five-minute tutorial, so personally organized the next step of the entire introductory tutorial, I hope to learn from the later help. PS: I am in the Win7 yards. Create a new project directory, and all of the following are done in this directory.1. Install TSD compile typescript Code command tool$ NPM install-g [email protected]^0.6.02. Installing Angular2,es6-promiserx,rx,rx-lite$ TSD Install angular2 es6-promise Rx Rx-liteNote that the
Swift contains C,cint, CBool, and CChar in front of the underlying type of CunsafepointerunsafemutablepointerThe following first behavior string turns char*; second behavior char* to stringLet SSS = unsafepointer"char string: " . Cstringusingencoding (nsutf8stringencoding)) Print (string.fromcstring (SSS) )For example, the following uses the C language objc/runtime traversal of all member variables in the current class, using UnsafemutablepointerLet varcount:unsafemutablepointer1) Varcount.initi
Slackware11 solves the problem of kernel upgrade-Linux general technology-Linux programming and kernel information. The following is a detailed description. I installed slackware 11 in my computer (sony vgn-fs15c), with the kernel 2.4.33.3, found a lot of problems, touchpad can not be used, wireless can not be used
Cat/proc/cpuinfo found problems
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 13
Model name: Intel (R) Pentium (R) M processor 1.60 GHz
Stepping: 8
Cpu MHz: 1596.272
Cach
the boot option noht. To check whether hyper-threading is supported, run the command cat/proc/cpuinfo to check whether the processor 0 and processor 1 exist. Note that the ht flag in Listing 1 is used for CPU 0 and 1. If hyper-threading is not supported, only data of the processor 0 is displayed.
Listing 1. Output of cat/proc/cpuinfo, showing hyperthreading supports processor: 0
Vendor_id: GenuineIntel
Cpu family: 15
Model: 1
Model name: Intel (R) Genuine CPU 1.60 GHz
Stepping: 1
Cpu MHz: 16
[Email protected] ~]# free-gTotal used free shared buffers CachedMem:15 8 7 0 0 5-/+ Buffers/cache:2 13Swap:17 0 17You have new mail in/var/spool/mail/root[Email protected] ~]# free-mTotal used free shared buffers Cachedmem:16049 8512 7537 0 198 5911-/+ buffers/cache:2401 13648swap:18047 0 18047View memory consumption percentage:[Email protected] ~]# Free-m | Sed-n ' 2p ' | awk ' {print ' used mem is "$" m,total Mem is "$" m,used percent is "$3/$2*100"% "} 'Used mem is 15765m,total mem are 15949
computer, the status of the running process, and so on. Most files and directories in/proc provide the most up-to-date information about the physical environment of the system. Although the files in/proc are virtual, they can still be viewed using any file editor or a program such as ' more ', ' less ' or ' cat '. When an editor tries to open a virtual file, the file is created out of thin air (on the fly) through the information in the kernel. This is some of the interesting results I got from
1. You can get some information about the CPU from the/proc/cpuinfo[[email protected] dev] # Cat/proc/cpuinfoprocessor:0 --Logical CPU IDVendor_id:genuineintelCPU Family:6Model:26Model Name:intel (R) Xeon (r) CPU E5504 @ 2.00GHzStepping:5CPU mhz:1995.000Cache size:4096 KBphysical Id:16 --Physical CPU IDSiblings:1Core id:255CPU Cores:1Fpu:yesFpu_exception:yesCPUID level:11Wp:yesFLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE
casing, for example on ${env:Path} Windows.Below is an example of a custom task configuration this passes the current opened file to the TypeScript compiler.{ "taskName": "TypeScript compile", "type": "shell", "command": "tsc ${file}", "problemMatcher": [ "$tsc" ]}Partial translation: (from the Internet)${workspaceroot} The absolute path of the folder currently open + the name of the folder${workspac
***************************************************************************
[Root@emed4test root]# du/-bh|more shows the hard disk usage of files in each process
8.0k/lost+found/#508086/_appsdir_shx3_war/shx3.war/meta-inf
8.0k/lost+found/#508086/_appsdir_shx3_war/shx3.war/web-inf/classes/net/emedchina/address/db/map
48k/lost+found/#508086/_appsdir_shx3_war/shx3.war/web-inf/classes/net/emedchina/address/db
***************************************************************************
[Root@emed4tes
In the analysis of the system, one of the first and most basic tools is often a simple measurement of the CPU utilization of the system. Linux and most unix-based operating systems provide a command to display the system's average load (loadaverage).
[huangc@v-02-01-00860 ~]$ uptime 11:18:05 up for days
, 1:17, one users, load average:0.20, 0.13, 0.12
Specifically, the average load value represents the average number of tasks that can be run within 1min, 5min, and 15min. The tasks that can
that the purchase of their home VPS after the payment, the account will always be in the pending state, they will manually review the order within 48 hours. If you want to expedite the order review, send Ticket to billing department, the title of "account Approval Request" can be.So start a 256M month to pay 3.5-blade based on OpenVZ VPS, waiting to upgrade to SSD hard disk. The configuration is as follows:
Guaranteed RAM:256MBvswap:256mbDisk STORAGE:30GBMonthly TRANSFER:1024GBCPU Cores:2IPv4
VMware Workstation is a desktop virtual computer software that allows multiple operating systems to run inside a single virtual machine, but what if VMware Workstation encounters a problem that does not support full virtualization when it installs 64-bit CentOS systems?
First, the premise:
CPU support Inter vt-x or AMD virtualization technology, specific reference to the official website description.
Second, the problem description:
Under the physical machine, VMware workstation can install
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.