Share a php startup/shutdown script (original) and a php shutdown script
A simple php service startup script to share with you
Idea (implementation principle ):
1: function module + case statement multi-branch judgment
2: add the # chkconfig: 2345 43 89 annotation to enable auto-start upon startup (the premise is to pu
--
Script used to obtain the connection information of the SQL Server server (based on the original shard creation and writing)
Declare@ Dbname sysname,-- The name of the database to be queried (empty for all). The connection information of all databases is queried by default.@ Brief deip bit-- Whether to display the IP address (0 NO, 1 Yes). This control is added because the IP address query is time-consu
Original: Use a script to get the ip address of the Local Machine and the ip address of the script
After receiving the course class, my old brother Kwai Hua started the course. Some of the simple things today can be graffiti or boring.
I want to get an IP address. It is very common in our lives. Today I will introduce you to my six methods of using scripts to ge
Share a MySQL database shard backup script (original) and a mysql database shard backup script
Share a MySQL database shard backup script (original)
Development ideas:
1. path: Specify the backup location and define the path (first determine whether a directory exists and no
When using PD, many people ask if there is any function to create an automatic upgrade script. Actually, there are.
Operating principle:1. Save the original version, save it as an APM file, and generate an archive model.2. to generate an upgrade script, select the original version.
Procedure:1. Open the PDM file,
The reason is that the database name has a middle hillock "-"Workaround: Enclose the name in brackets.Call:backupone [database name-new]The full backup script is as follows@ECHO onSet date=%date:/=-%Set Bakupfolder=f:\bakup\REM 1 Saves the backup file by sub-directory; 0 does not pressSet Lay_in_subfolder=1Call:backupone [database name-new]Goto:eof@ECHO OFF: BackuponeSetlocalEcho%1Set dbname=%1If not exist%bakupfolder%%dbname% mkdir%bakupfolder%%dbnam
Tags: png. SQL and test class finishing count process TE#1, view table capacity space SELECTTable_schema,table_name,table_rows,ROUND(Data_length/1024x768/1024x768/1024x768) as 'data_size (G)',ROUND(Index_length/1024x768/1024x768/1024x768) as 'index_size (G)',ROUND(Data_free/1024x768/1024x768/1024x768) as 'free_size (G)' fromInformation_schema.tablesWHERETable_schema='Test' andtable_nameinch('Sbtest1'); #2, viewing user connections Select user,count(1as fromgroupbyuser; #3, bulk kill user con
1. Brief Introduction
What is adsutil. vbs? I believe that the network manager who has used IIS will not know. This is a script provided by IIS for managing IIS under the command line. Located in the % SystemDrive % \ Inetpub \ AdminScripts directory. It must be 95,426 bytes in size. Such a large script has powerful functions. This is also true. Basically, I think it is an "Internet Information Service Mana
modified to Decemberdatey= ' Date +%y 'datey=$ (($datey-1)) @ Change the year to last year it was last December.ElseDatem= "_0$ (($datem-1))" Datey=`Date+%Y ' @ Considering the January of the year to back up last year's fi#getFullYearDird="$datey $datem"#Echo "$dird"Readd=`Date+%N '. txtFind$pathh-name $dird >>$readd forIinch$(Cat$readd); DoAAC=$(Echo$i |awk-F"/" '{print $6 "/" $7 "/"}') AAC=${PATHD}${AAC}CP-R $i $AAC >> dbcp. Log DoneRM-RF $readdOK Next Modify the permissions and the timing of
First, the principleWindows compiled files and Linux compiled file formats are not the same, resulting in Linux running shell scripts when prompted:/bin/bash^m:bad interpreter: There is no file or directory.The reason is this:1. When the Windows compiled files end (carriage return + line wrapping)2. At the end of Linux compiled files (newline)This causes the Windows compiled files to be placed on Linux with [Noeol] and [DOS] flag flags.If you run the cat command to see more visually the file dif
A problem that is easy to overlook:strcmp, strncmp, memcmp,A case of memory overlap may occur for string comparisons with memcmpStatus = STRNCMP (Xdev->product, "MU709", 5);if (!status) {Return-enodev;}A script to download the app via XCB@echo ... udc download test ...@set Path_name=c:\users\minquan. Paxsz\desktop\q80_system_dead\prolinftest_20150414_v3.07_sig.aip@for/L%%i in (1,1,100000000) do (@xcb Installer AIP%path_name%@echo download [%%i] times
This site is original. For reprinted, please state the source of your homeI found someone asking me for such Code recently. When I copy the article on this site, I can add a sentence as long as I copy the content on this site, this article is reprinted from the script home and added with the content address. This will provide many benefits for the promotion of this site. You can search for it, for example,
Environment Preparation: 1. Mobile phone 2.wifi3.jmeter specific steps:1, start jmeter;2, "Test plan" add "thread Group", 3, "Workbench" Add "HTTP proxy Server", 4, configure Proxy server: Global Settings The following port configuration:9988, HTTPS domains configuration:http://10.200.52.88, Target controller configuration: test plan > Thread Group where Port: Discretionary; IP: computer's IP, as set5, Mobile WiFi settings agent: "Agent"---select " manual ", "Proxy server hostname"---"10.200.52.
ftp.sh1#!/bin/SH2 3 CD4Echo"completely uninstall the original FTP"5sudo apt-GetRemove--purge vsftpd # (--purge option means complete removal of software and related files)6 7Echo"Installing the VSFTPD server"8sudo apt-GetInstall VSFTPD9 TenEcho"configuration file" One #匿名访问 Asudo sed-i-E's|anonymous_enable=yes|anonymous_enable=no|'/etc/vsftpd.conf - #设定本地用户可以访问. -sudo sed-i-E's| #local_enable =yes|local_enable=yes|'/etc/vsftpd.conf the #设定可以进行写操作 -su
Statement =====================# #条件不满足循环, stop when you are satisfied # #Calculates the value of a 1~50[Email protected] ~]# VI sum1to50_until_v1.sh#!/bin/bash# #filename: sum1to50_until_v1.shI=0;s=0Until [$i-eq 50]DoLet "i= $i +1", let "s= $s + $i"DoneEcho ' sum (1..50) = ' $s=========================== Double Cycle ==================#!/bin/bash#H=1While [$H-le 10]DoL=1While [$L-le $H]DoEcho-n "$L"Let l++Doneecho ""Let h++DoneFinal output:112123123412345123456123456712345678123456789123456789
Since the upgrade of Chrome, inadvertently found that the console under the total annoying tips, is CNZZ statistics.
Look, the current version of Chrome is: Version 56.0.2924.87
To be exact, this annoying CNZZ content tip is as follows:
A parser-blocking, Cross-origin script, Http://s11.cnzz.com/stat.php?id=XXXXXXshow=pic, is invoked via document.write. This is blocked by the browser if the device has poor the network. https://www.chromestatus.com/fea
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.