forever creations

Read about forever creations, The latest news, videos, and discussion topics about forever creations from alibabacloud.com

Understanding IP addresses and MAC addresses

Overview: IP is the address, has the location function (Network and network communication) (NET layer) MAC is ID, no positioning function (working on subnet) (link layer) The first is how to view the IP address problem:Window:ipconfigLinux:ifconfig, IP addr#contents of IP addr under Linux[Email protected]:~#IP Addr1:lo: Qdisc noqueue State UNKNOWN Group default link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00inet127.0.0.1/8Scope host lo valid_lft

Add local loopback address to CentOS7

1. temporarily add ipaddradd10.10.1.1/32 devlo: 1 restart failed 2. add cd/etc/sysconfig/network-scriptscpifcfg-loifcfg-lo permanently: 1 [root @ localhostnetwork-scripts] # catifcfg-lo: 1 DEVICE = lo: 1 IPADDR = 10.1 1. temporarily add Ip addr add 10.10.1.1/32 dev lo: 1 Reboot failed 2. add permanently Cd/etc/sysconfig/network-scripts Cp ifcfg-lo: 1 [Root @ localhost network-scripts] # cat ifcfg-lo: 1 DEVICE = lo: 1 IPADDR = 10.10.1.1 NETMASK = 255.255.255.255.255 ONBOOT = yes NAME = loopba

Python parses all the operations for reading and writing txt files,

python]# python count1.pySearch 4 hello 2. ReplacementInstance: replace all the hello messages in test.txt with "hi", and save the result to myhello.txt. #!/usr/bin/pythonimport ref1 = open('/tmp/test.txt')f2 = open('/tmp/myhello.txt','r+')for s in f1.readlines():f2.write(s.replace('hello','hi'))f1.close()f2.close()[root@node1 python]# touch /tmp/myhello.txt[root@node1 ~]# cat /tmp/myhello.txthi girl!hi boy!hi man!hi python! Example: Read the file test.txtcontent and sort the output result into

High-availability Web architecture Keepalived + Haproxy

BACKUP interface eth0 virtual_router_id 51 priority 100 # change 100 to 99 advert_int 1 authentication {auth_type PASS auth_pass 1111} virtual_ipaddress {192.168.10.110/24 dev eth0 scope global} real_server 192.168.10.100 80 {# change the IP address of the backup server to 192.168.10.101TCP _ CHECK {}} on HA02 {}} After modification, start keepalived [Root @ HA01 keepalived-1.2.7] #/etc/init. d/keepalived start Error: Starting keepalived:/bin/bash: keepalived: command not found Solution: cp the

Powerful crawlers Based on Node. js can directly publish captured articles.

Powerful crawlers Based on Node. js can directly publish captured articles! The source code of this crawler is based on the WTFPL protocol. For more information, see I. Environment Configuration 1) A server can work on any linux server. I use CentOS 6.5; 2) install a mysql database, which can be 5.5 or 5.6. You can directly use lnmp or lamp to install the database, and you can directly view the log in the browser; 3) first install a node. js environment. I used 0.12.7, but I did not try the lat

Complete parsing of Python's methods for reading and writing txt text files

really is an unlocked door just waiting for you to open it.This is Forever Friendship.when you're down,and the world seems dark and empty,Your forever friend lifts you up in spirits and makes that dark and empty worldsuddenly seem bright and full.Your forever friend gets you through the hard times,the sad times,and the confused times.If you turn and walk away,Yo

Nodejs First-Order Express

. node's little base friend SupervisorEach time you modify the code, it restarts automatically.  Lazy programmers are counting on this effortless tool to live: Installation:NPM install-g SupervisorPerform:Supervisor App.jsAnotherLittle Friends ForeverVirtual machine A close node service is off, but forever can let node service does not stop, introduced as follows, installation and execution not to elaborate, I lazy:

Saltstack Configuration Management-Business reference keepalived

ad li2:eth0: Link/ether 00:0c:29:5c:e0:13 BRD FF:FF:FF:FF:FF:FFinet 10.0.0.7/24 BRD 10.0.0.255 Scope Global eth0inet 10.0.0.11/32 Scope Global eth0 ===============> Here is the virtual IPInet6 FE80::20C:29FF:FE5C:E013/64 Scope linkValid_lft Forever Preferred_lft Forever[[Email protected] ~]# IP ad li2:eth0: Link/ether 00:0c:29:38:4b:e3 BRD FF:FF:FF:FF:FF:FFinet 10.0.0.8/24 BRD 10.0.0.255 Scope Global eth0I

Oracle Frequent generate a lot of cdmp * directories contain * bucket trace in bdump problem analysis

. 785272: 89F5D5D2: db_trace: ksxp. c @ 4368: ksxpmsgcncl (): [10401: 531: 0] KSXPMSGCNCL: client 2 tid inst 1 ptid 257 flags 0x10017:32:17. 785569: GSIPC: kjcc. c @ 626: kjccdel (): GSIPC: CLNT: deleted client comm layer structures 217:32:17. 785576: 89F5D5D4: db_trace: kss. c @ 1414: kssdch (): [10809: 531: 0] kssdch (0xc0000010e1d0bdc8 = process, 2) 2 0 exitView system event dumpSQL> oradebug setmypidStatement processed.SQL> oradebug eventdump system10949 trace name context

Nginx+keepalived primary and Standby load Balancing learning Notes

:: 1/128 Scope HostValid_lft Forever Preferred_lft Forever2:eth0: Link/ether 00:0c:29:af:00:4e BRD FF:FF:FF:FF:FF:FFinet 192.168.0.130/24 BRD 192.168.0.255 Scope Global eth0inet 192.168.0.150/32 Scope Global eth0Inet6 FE80::20C:29FF:FEAF:4E/64 Scope linkValid_lft Forever Preferred_lft ForeverStop keepalived:/etc/init.d/keepalived stop on the primary server and then check from the server to see if it is alre

10046 Trace Detailed (1)

Background_dump_dest, the following command can display USER_DUMP_ Dest Sql> Show Parameteruser_dump_dest Note: By setting tracefile_identifier, this setting can help us find the generated trace file more easily. Second, Open trace at the session levelThis approach applies to SQL statements that can be run after a new session is created. Alter session settracefile_identifier= ' 10046 ';Altersession Set timed_statistics = true;Altersession set statistics_level=all;--instance level setting this o

Programmer's three lines of code love letters

as we work together to facefinally{ours.love++;} Will only make us love deeper Chen Kaihui u014439620 Yanshan University #include for (we.meet=quot; rarequot;; U.need_me ("tooquot;) | | U.hate_me (quot; stillquot;) | | True promise++)//Our meeting is so difficult and now if you still need me like I need you or you still hate meI.alwaysbewithu (quot; never_lose_againquot;);//I will accompany you to cherish you no longer lose you my oath again and again ... Zhang Weiwei Iwwz24 Guangdong Ocean Uni

Several ways to track session execution statements in Oracle

$parameter12 where name = ' user_dump_dest ') d13 nbs P;/trace_file_name--------------------------------------------------------------------------------/oracle/admin/rlzy/udump/rlzy_ora_721532.trc can also assign identifiers to the trace files to be generated, making it easier to find files sql> Alter session set tracefile_identifier= ' Jingyong '; 2, using 10046 event: 10046 event Level: Lv0 -disable sql_trace, equivalent to sql_trace= FALSELV1 -enable the standard Sql_trace function, equivalen

PPTP VPN Server

, selected as "optional encryption ( can also be connected without encryption ) ". We can connect the VPN assigned IP address on our server [[Email protected] ~]# IP add 1:lo: Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00 inet 127.0.0.1/8 Scope host Lo INET6:: 1/128 Scope Host Valid_lft Forever Preferred_lft Forever 2:eth0: Link/ether 00:0c:29:2e:5e:4e BRD FF:FF:FF:FF:FF:FF ine

Linux single-NIC multi-IP configuration

NAME=za209 UUID=7e917b8e-2d35-4630-b314-2d64a2f1f52f ONBOOT=no DNS1=10.0.10.10 DOMAIN=10.0.15.11 HWADDR=B8:88:E3:73:7A:7B IPADDR=10.0.57.230 PREFIX=24 GATEWAY=10.0.57.1 IPADDR1=10.0.57.231 PREFIX1=24 GATEWAY1=10.0.57.1 IPV6_PEERDNS=yes IPV6_PEERROUTES=yes 2. Restart the network card, using the IP addr command to view, shown as follows: 2 : Enp2s0 : broadcast Span class= "pun", multicast up

Lvs+keepalived+nginx implementation of high performance load Balancing cluster high performance JSP cluster

delay_before_retry 3 connect_port 80 } } real_server 192.168.254.132 80 { weight 1 TCP_CHECK { connect_timeout 10 nb_get_retry 3 delay_before_retry 3 connect_port 80 } } real_server 192.168.254.133 80 { weight 1 TCP_CHECK { connect_timeout 10 nb_get_retry 3 delay_before_retry 3 connect_port 80 } }}Service keepalived StartENS32: Link/ether 00:0C:29:E3:F4:FF BRD FF:FF:FF:FF:FF:FFinet 192.168.254.135/24 BRD

Deploy the million PV site architecture on CentOS7

]# setenforce 0[[emailprotected] PV]# systemctl start keepalived.service3) test keepalived's dual-machine hot-standby functionTurn off the host's keepalived service to see if the virtual IP can automatically drift to the standby machine. Primary server: [[emailprotected] pv]# IP addrinet 192.168.126.138/24 BRD 192.168.126.255 Scope Global Dynamic Ens33 valid_lft 1697sec preferred_lft 1697sec inet 192.168.126.188/32 scope global Ens33 Valid_lft forever

The difference between ALTER INDEX rebuild and ALTER index rebuild online

This paper uses 10046 events to analyze the difference between ALTER INDEX rebuild and ALTER index rebuild online Alter index rebuild online is essentially a scan table rather than scanning an existing index block to achieve an indexed rebuild Alter INDEX rebuild only scans the existing index blocks to implement the rebuild of the index. We can use 10046 events to discover this phenomenon. First look at ALTER INDEX rebuild: Sql> ConnPlease enter user name: WWF/WWFis connected.sql> drop table wwf

Getopt_long () function _c language for parsing the command line in detail

, Short_options, Long_options, NULL))!=-1) { Switch (c) { Case ' n ': printf ("My name is xl./n"); Break Case ' B ': printf ("His name is st./n"); Break Case ' l ': L_opt_arg = Optarg; printf ("Our Love Is%s!/n", l_opt_arg); Break } } return 0; } [Root@localhost wyp]# gcc-o getopt getopt.c [Root@localhost wyp]#./getopt-n-b-l Forever My name is XL. His name is ST. Our Love is forever!

A deep analysis of JavaScript object-oriented and prototype function _javascript techniques

Object is a very important stem in JavaScript, and it is directly related to your basic understanding of the entire JavaScript system, and to be clear, JavaScript is a group of objects. Beep )。 Here are some common types of object creation patterns Create using the New keyword The most basic way to create an object is to say the same as most other languages: no object, you new one! var GF = new Object (); Gf.name = "Tangwei"; Gf.bar = "C + +"; Gf.saywhat = function () {Console.log (th

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.