: Linuxnginxmysqlphpnagios most of the Linux operations Engineers, network engineers, system engineers are at this stage. At this stage the average wage is 3-10k. The partners at this stage should pay attention. It belongs to the bottom of the pyramid, and the salary is relatively low.02. System Architecture Level: This stage is a large-scale clustering scheme with known software architecture and implementation of various technical solutions This is c
Yesterday took care of an urgent issue, the customer complained that the product upgrade system will be slow and CPU usage is very high, the customer is very strong temper, claiming not to resolve this problem as soon as possible to return, make us R/R pressure is very big, solve this issue task assigned to me, the customer is a South African company, Because of the time difference problem, I had to solve the problem at home remotely, night 8:30 with gotomeeting remote to the client computer to
Yesterday took care of an urgent issue, the customer complained that the product upgrade system will be slow and CPU usage is very high, the customer is very strong temper, claiming not to resolve this problem as soon as possible to return, make us R/R pressure is very big, solve this issue task assigned to me, the customer is a South African company, Because of the time difference problem, I had to solve the problem at home remotely, night 8:30 with gotomeeting remote to the client computer to
them"/ tmp "System temp directory"/usr "System applications and related files"/var "files frequently changed in the system such as log files and user mail"RM-RF Directory name Delete directory "include non-empty directory"Touch "Create empty file"CP-RF"-R recursive-F enforcement"ln-s source file destination fileuse of Findsearch for and display files and directories of the specified name in a specific directorySearch for files or directories that have been accessed/changed over timefind/home-ad
in directory 1 and directory 2 find path-name file name: Search for files and directories (by name) find path-amin-10: File directory accessed within 10 minutes find path-ATIME-10:10 h Access Directory of files accessed in the file directory find path-cmin-10: Changed in 10 minutes to find path-ctime + 10: Is the hour before the changed file or directory (C=change + before-within) find path-size +10k: Find directory File size
This test is all written script, a total of 10 questions, enjoy it~1. Write a shell script to transfer files larger than 10K in the current directory to the/tmp directory.#Author: Name#E-mail:e-mail Address#Description: It is a good habit to add a name, contact and description when writing a program.#!/bin/bashLs-l|awk ' $5>10240 {print $9} ' >name.txt #先把大于10K的文件名都保存到name. txt fileFor filename in $ (cat na
files
find/etc/-type b-name "fxq" Find block file
find/etc/-type s-name "FXQ" Find socket file
find/etc/-type l-name "fxq" Find linked files
Find/-type f-mtime-1 finds files that have changed content in a day
Find/-type F-mtime +1 finds files that have changed content more than one day
find/etc/-type f-o mtime-1-name "*.conf" (-O is or meaning)
Find/-inum inode number lookup hard link file
Find/-mmin-60 within one hour
Find/-type f-mmin-120-exec ls-l {}; List all file
β are fixed, (3) α and β depend on K.(1) Subject model, alpha = 0.1,beta = 1/(10k)(2) Subject model, alpha = 0.1,beta = 0.01(3) Subject model, alpha = 1/k,beta = 1/(10k)The LDA hyper-parameter β and the subject quantity are interrelated and the interaction is very complicated. It is wrong to assume that there is a certain "correct" parameter configuration for a given set of documents. First, it's important
the previous page contentLess: page displays the contents of the file, space to view the next page of content, the upper and lower keys can also view the upper/next page contentgrep: Display the content found in text (grep displays only what is found, Cat displays text so content)Grep–n displays the number of rows that the content contains|: Pipe command, give the result of the previous command | The following command is processed. (one command can have multiple pipe commands)Find: File LookupF
minutesFIND/HOME-ATIME-10 files or directories accessed within 10 hoursFind/home cmin-10 files or directories accessed within 10 minutesFind/homectime +10 10 hours ago changed file or directorySearch by File sizeFind/home-size +10k: Find Files of size 10k in/home directoryredirectLs-l > A.txt The contents of the list are written to the file A.txt (overwrite write)Ls-al >> Aa.txt The contents of the list ar
directories accessed within 10 hours"Case"find/home-cmin-10: Changed files or directories within 10 minutes"Case"find/home-ctime +10: Changed files or directories 10 hours ago-Search for files of a specified size"Case"find/home-size +10k: Meaning to find files of size 10k in the /home directory-redirect Command-ls-l > A.txt, the contents of the list are written to the file a.txt (overwrite write)-Ls-al >>
] Sets the file's predecessor file name after cutting, and split automatically adds a number to the pre-file name. Examples of Use:[[email protected] split]# split-b 100m 1111.log (//separated by byte, one file per 100mb) [[email protected] split]# split-l 1000000 1 111.log (//Divide by line, split every 100w line)Another example:Mister into 100kb Size file[[email protected] split]# dd If=/dev/zero bs=100k count=1 of=date.file 1+0 Records in 1+0 Records out 102400 bytes (102 k B) copied, 0.0004
targetvalue) {int a = Arrays.binarysearch (arr, Targetvalue); if (a > 0) return True;elsereturn false;} 2. Complexity of TimeUsing the code below we can calculate the approximate time spent on each of these methods. The basic idea is to search in an array of 5,1k,10k size, respectively. This method may not be accurate, but the idea is clear and simple.public static void Main (string[] args) {string[] arr = new string[] {"CD", "BC", "EF", "DE", "AB"
Find find path lookup standard processing actionFind path: Default to Current pathFind Standard: Default find all Files under directoryHandling actions: Default display to standard outputFind criteria:-name "file name": Search by file nameWildcard characters supported-user user name: Based on owner Lookup-group Group name: Search by Genus Group-uid UID: According to UID-gid GID: According to GID-nouser: Finding files that are not owned by the master-nogroup: Finding files that are not owned by a
finds files from a specified directoryFind dir–size +10k Looking for files of size 10K from the specified directoryFind dir–amin-10 files or directories accessed within 10 minutes from the specified directoryFind dir–atime-10 files or directories accessed within 10 hours from the specified directoryFind dir–cmin-10 files or directories that have been modified within 10 minutes from the specified directoryF
horizontal scaling. RabbitMQRABBITMQ is an open source message queue written using Erlang, which itself supports a lot of protocols: Amqp,xmpp, SMTP, STOMP, and that's why it's very heavyweight and more suitable for enterprise-class development. The broker framework is also implemented, which means that messages are queued in the central queue before being sent to the client. Good support for routing, load balancing, or data persistence.RedisRedis is a NoSQL database based on Key-value, which i
-time data processing.Scale out: Supports online horizontal scaling.RabbitMQRABBITMQ is an open source message queue written using Erlang, which itself supports a lot of protocols: Amqp,xmpp, SMTP, STOMP, and that's why it's very heavyweight and more suitable for enterprise-class development. The broker framework is also implemented, which means that messages are queued in the central queue before being sent to the client. Good support for routing, load balancing, or data persistence.RedisRedis
: Supports online horizontal scaling.RabbitMQRABBITMQ is an open source message queue written using Erlang, which itself supports a lot of protocols: Amqp,xmpp, SMTP, STOMP, and that's why it's very heavyweight and more suitable for enterprise-class development. The broker framework is also implemented, which means that messages are queued in the central queue before being sent to the client. Good support for routing, load balancing, or data persistence.RedisRedis is a NoSQL database based on Ke
is 5, 1k, 10k. The results of this approach may not be accurate, but are the simplest and clearest way.
public static void Main (string[] args) {string[] arr = new string[] {"CD", "BC", "EF", "DE", "AB"};
Use list long starttime = System.nanotime ();
for (int i = 0; i
Run Result:
Uselist:13
useset:72
useloop:5
usearraysbinarysearch:9
Use an array of length 1k
string[] arr = new string[1000];
Random s = new Random ()
NoSQL database based on Key-value, which is very active in development and maintenance. Although it is a Key-value database storage system, it natively supports MQ functionality, so it can be used as a lightweight queue service. For RABBITMQ and Redis on-board and out-of-team operations, each execution 1 million times, every 100,000 times the execution time is recorded. The test data is divided into 128Bytes, 512Bytes, 1K and 10K four different sizes
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.