is the number of people in the company, and the third domain is the average salary of employees. (Except for the company name, others are all written into the comment _ ^) # cat netcompany.txt google 110 5000 baidu 100 5000 3000 guge 50 100 sohu 4500 I want this file to be sorted alphabetically by the company, that is, sort by the first domain # sort-t''-k1 netcompany.txt baidu 100
Sony (Japan) 10 thousand/month, only for graduate students China headquarters of South Korea's Samsung Electronics 0.25 million/year French Somm software, with an annual salary of 0.2 million RMB/year, working in Europe Cisco (Cisco) 15000/month, only for graduate students Intel 13000/month IBM 5000/month Siemens Germany 8000/month Tibet Unicom's 1 million year (must be 8 years old), but the altitude sickness is too hard. The monthly salary o
performance of MySQL, Redis and other I/O operations); BMW 330i (PHP): The following abbreviation (PHP) Version:5.2.17; Official performance: 8220 Req/sec (HTTP request); Modification situation: BMW Modified Acschnitzer provides: nginx+fastcgi; Note: Perhaps my PHP configuration is not the optimization, should also be faster, some of the following test configuration is based on the article on the Internet configuration, if the master to match, the estimated PHP performance can also improve ab
I. Docker use of the network
1. External access to the Docker container, you can specify port mappings by-p or-p
When the-p tag is used, Docker maps a 49000~49900 port randomly to an open network port on the internal container
--->docker run-d-p training/webapp python app.py
--->docker ps-l view port mappings
root@izrj92o440hd7iwmo9iwfgz:~# Docker run-d-p Training/webapp python app.py8a65b840a7882d76746baba48c98227b03be2218aa0af262f8180d0dee83c361root@izrj92o440hd7iwmo9iwfgz:~#CONTAINER ID IMAGE
Docker's private warehouse, like Maven's, is typically used to build a docker hub-like environment within the company, so uploading and downloading mirrors are faster, and this article demonstrates how to use Docker-machine on a Mac to build a private warehouse without SSL certificates.One, view docker-machine virtual machine IPDocker-machine IP DefaultBy default, the virtual machine name created by Docker-toolbox is default, and if your virtual machine name is not this, the last default of the
following practices to reduce security settings:
12
docker-machinesshdefaultsudovi/var/lib/boot2docker/profile
At the end of the profile, add:
1
EXTRA_ARGS="--insecure-registry 192.168.99.100:5000"
Then exit the default, and enter the following command to restart the virtual machine
1
docker-machine restart default
Third, create a container
1. Download the repository Image
Docker pull Registry
2. Create a private repository container-D indicates that the background is startedDocker run-D-P 5000: 5000-V/opt/data/Registry:/var/lib/Registry
3. Remove port 5000 from the FirewallFirewall-cmd -- zone = public -- add-Port = 5000/tcp -- Permanent
4. Verify that
stopfifichmod 755 /etc/keepalived/check_haproxy.sh
Edit the configuration file of Haproxy:
vi /etc/haproxy/haproxy.cfg
The configuration file is as follows:
global log /dev/log local0 info log /dev/log local0 notice maxconn 4096 user root group root daemondefaults log global maxconn 10000 contimeout 5000 clitimeout 3600000 srvtimeout 3600000 option redispatch r
"James" to "Li Xiaoming ";
2. Delete the first three rows
3. Display 5-10 rows
4. Delete the row containing "exclude"
5. display all rows with birthdays between Nov and Dec
6. All rows starting with a surname Zhang, marked with the front side ***
7. Use "trial staff" to replace the line containing "trial"
8. The birthday invented by Liu was 1986/11/11
9. Delete all blank rows
10. write a script to insert the first line into the Personnel File, delete all salaries ending with 500, display the Fi
1. View Docker version information# docker Versionclient:version:18.03.0-ce API version:1.37 Go version:go1.9.4 Git commit:0520e24 built:wed Mar 21 23:09:1 5 2018 Os/arch:linux/amd64 Experimental:false orchestrator:swarmserver:engine:version:18.03.0-ce API version:1.37 (mi Nimum version 1.12) Go version:go1.9.4 Git commit:0520e24 built:wed Mar 23:13:03 2018 Os/arch:linux/amd64 Experime Ntal:false2. Build a local private warehouse#mkdir-p/opt/data/registry#sudodockerrun-d-p5000:
into the Personnel File, delete all salaries ending with 500, display the File content, turn the phone number and birthday upside down, and add the end at the end of the File.
11. extract the name of the row containing "trial" and replace it with "trial User:" + name
Data content:
[Houchangren @ ebsdi-23260-oozie data] $ cat persons.txt James: 010-68239343: I am a manager: 1988/01/10: 5000 dawn: 010-68239343: I am a manager: 1988/08/10:
The absolute inside. Pre-sales salaries for major IT companies in recent years
2004, the days of the letter Beijing salary list: Top 4000-8000, technology over the take can be more than 5000, there are bonuses, sales are not detailed, research and development pay a higher 5000-9000, the implementation of the General Staff. 05, more than 4500 before the sale
2005 CISCO, pre-sale 6000-18000, requirements ccie
that directory, copy and paste the following docker-compose.yml contentto your docker-compose.yml file.The content is roughly meant to run the Nginx container based on "nginx:1.9" image, exposing the container 443 port to host 443 port. and mount the nginx/directory under the current directory as a containerThe/ETC/NGINX/CONFIG.D directory.Nginx link to registry container. Create registry container based on Registry:2 image, expose container 5000 por
How can I effectively determine whether there are intersection of several sets of data ranges? php
5000 ~ 7000
2000 ~ 6000
8000 ~ 9000
4000 ~ 8500
5000 ~ 7000
In php, how can we more effectively judge whether there are duplicates of these groups of random data?
Expected value:
2000 ~ 4000
4000 ~ 5000
5000 ~ 6000
6000
nodes, A, B, and C, then our n is 3.
We want to write only one copy W = 1, then according to W + r> n there are r = 3. There are the following scenarios:
First, a received a request that the iPhone price is 4000. We now have 4000 [A: 1];
Before data is copied to B and C, someone told a that the price was increased to 4500. then there is 4500 [A: 2] On A, which overwrites the previous [A: 1]
Then the price was copied to B and C. Then there is also 4500 on B and C [A: 2].
At this poi
Question
Match all the characters and their occurrences.
Question B
Push rules, pay attention to details, such as the midline or something.
Question C
Good questions.
Given n
My practices:
After the number of input values is sorted in ascending order, the first value must be: num [1] = 0; otherwise,-1 is output;
The height of all (including the first person) num [I] is 5000,
For example, num [] = {-, 5 ...};
Starting from
turn.The next step is to configure the IdentityServer4 pipeline, add the Configure inside the app. Useidentityserver (), where we don't use MVC, will be app. USEMVC () Comment out. Below we run our project, of course direct access to http://localhost:5000 is not to see anything, where we use a fixed address http://localhost:5000/.well-known/ Openid-configuration, you can view the configuration information
/*",
"ARN: AWS:S3:::d ocker-registry-bucket-name "
]
}
]
}
This configuration will allow the user (i.e. regitstry) to manipulate (read/write) the contents of the bucket (make sure to use the bucket name that you used to create the AWS S3). To sum up: when you want to push your docker image from your native computer to the warehouse, the server uploads them to the S3.
Install registry
Now look back at our do server, SSH login on it. We are going to use an official Docker regi
version of Docker-ce curl -sSL https://get.docker.com/ | shNote: The installation process depends on the network conditions, may require a period of time, need to wait patientlyInstalling AcceleratorsBecause at home, visiting foreign sites may be slower, so it's best to add accelerators for Ubuntu.For the Ubuntu 14 system environment, modify the file/etc/default/docker:DOCKER_OPTS="--registry-mirror=https://registry.docker-cn.com"Get the official registry image from the Docker hub and la
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.