I found that even if xp_mongoshell is unavailable, it is still possible to run CMD on the server and get the echo result. here we need to use several other system stored procedures on the SQL SERVER: sp_OACreate, sp_OAGetProperty and sp_OAMethod. The premise is that Wscript. shell and Scripting. FileSystemObject on the server are available.Sp_OACreateIn Microsoft®SQL Server™Create an OLE object instance on the instance.SyntaxSp_OACreate progid, | clsi
Common CMD commands for O M
@ Echo offset PortNum = 3306for/f "tokens = 15" % a in ('ipconfig ^ | findstr/I/c: "IP Address "') do (set IP = % a) for/f "tokens = 5" % a in ('netstat-ano ^ | findstr "% IP %: % PortNum % "') do (set PID = % a) echo Port Number % PortNum % the corresponding PID is: % PID % pause
1. Find the process with a known port number
You can also use the following batch processi
documentAnswerYou can use the jar CF Test.jar Test command to complete the compression. The compressed package contains a test folder and a Meta-inf folder with a MANIFEST.MF file.Interview Example 12: How to execute the main () method.Which command in the Java SDK is used to execute the main () method of test?(a) Java test.(b) Javac test.(c) Java Test.java.(d) Java Test.class.(e) Java Test.main.Test Center: Examine how familiar the job seeker is with the Java command.Occurrence frequency: ★Ana
processOpen Task Manager, view, select columns, and then check the PID option, go back to Task Manager to view the corresponding PID, and then end the processOf course, the above method is sometimes bad, that is, the task manager in the process of more time, and then to find the corresponding process is very troublesome, so there is a way to kill the process ofMethod Two: Kill the process with a command1> first find the process name corresponding to the process numberTASKLIST|FINDSTR Process Nu
Compmgmt.msc Computer ManagementDevmgmt.msc Device ManagerDiskmgmt.msc Disk Management ToolsDfrg.msc Disk DefragmentationEventvwr.msc Event ViewerFsmgmt.msc shared Folder Managementgpedit.msc User, Group Policy Management toolLusrmgr.msc Local user, group managementPerfmon.msc Computer Performance MonitorRsop.msc Management Policy ViewSecpol.msc Local Security settingsServices.msc Service ManagementWinver checking the Windows versionDxDiag checking DirectX InformationMsconfig.exe System Configur
WHOAMI//view Current user nameipconfig//view native IP information, add/all parameterNetstat-ano//View Port Clear conditionDIR \ c//view directoryType c:\Users\admin\Desktop\1.txt//view make location file content, usually text fileecho string >2.txt//write text to file. Special words such as Copy 1.txt 3.php//Copy filesRename D:\2.txt mspaint.bat//rename a file under a pathTasklist//View all process-occupied portsTaskkill/im image name. exe/f//Forces the end of the specified process, such as Tas
Installation tutorials for 1.mavenis: http://maven.apache.org/download.cgiAfter entering this pageClick Download, then unzip, I change the directory name to MAVEN, directory structure as shownBelow we configure the environment variablesThis is maven_home:At the end of the path variable, add;%maven_home%\bin%; The number cannot be thrown away.Enter mvn-version in cmd, and if the version information appears, install it correctly.2.maven display MVN is n
What is said on the Internet, I summed up a bit, and then I recently encountered a situation online as if no one had encountered, posted here1, environment variables, generally can compile files, it is not the amount of environmental variables2, without the package name, such as the AAA package below the Hello.java compiled Hello.class runtime to write this Java Aaa.hello3, also I encountered a situation, the file path in Chinese, and then changed the folder name to the English name to solve.Run
table name;Backup table: Mysqlbinmysqldump-h (IP)-uroot-p (password) databasename tablename > Tablename.sqlRecovery table: Mysqlbinmysql-h (IP)-uroot-p (password) databasename tablename Add column: ALTER TABLE T2 ADD C INT UNSIGNED not NULL auto_increment,add INDEX (c);Modify column: ALTER TABLE T2 MODIFY A TINYINT not NULL, change b C CHAR (20);Delete column: ALTER TABLE T2 DROP column C;Backup database: Mysql\bin\mysqldump-h (IP)-uroot-p (password) databasename > Database.sqlRecovery database
transfer. It indicates that the two machines are in the same LAN. Usage: tracert IP. V. net This command is the most important one in network commands. You must thoroughly understand the usage of each of its sub-commands, because it is too powerful, this is the best intrusion tool that Microsoft provides for us. First, let's take a look at all the sub-
There are many command-line tools for the network, such as the familiar ping,tracert,ipconfig,telnet,ftp,tftp,netstat, and the unfamiliar Nbtstat,pathping,nslookup,finger, Route,netsh ...
These commands can be divided into three categories: network detection (such as ping), network connectivity (such as Telnet), and
These commands can be divided into three categories: network detection (such as ping), network connectivity (such as Telnet), and network configuration (such as Netsh). The first two are relatively simple, and this article covers only two network configuration tools.
Netsh
U
1, as an administrator to open a command prompt;
2, view all the saved wireless network records list: netsh wlan show profiles;
3, view a wireless network record details: netsh wlan show profile name= "wireless network Name" Key=clear;
4. Delete a wireless network record: Netsh wlan delete pr
There are many built-in command line tools for networks, such as ping, tracert, ipconfig, telnet, ftp, tftp, netstat, and unfamiliar nbtstat, pathping, nslookup, finger, route, netsh ......
These commands can be divided into three types: network detection (such as ping), network connection (such as telnet), and network
Public network of Linux through the FTP command and PHP ftp_connect can not connect, tried 3 machines, can ping, but in the initial connection when the time has been waiting, not to mention the landing FTP server.
However, the local Windows machine can be connected and logged on via the FTP command under the client or CMD.
FTP server firewall is off, FTP port default 21
Reply content:
Public
Network command line:1-ping2-ipconfig Configuration of native network3-net4-arp Network NIC physical/IP address pair Application5-tracert lists the gateways that the data has passed to the target.6-netstat Routing Information7-nbtstat8-route routing Table9-nslookupFirst, obtain the host name by IP addressCommand line:PING-A IP address//Resolves IP address to host computer name (IP address can be local IP or
Common network security management commands and network security commands
:
Common network security management Commands include: ping command to determine whether the host is connected, ipconfig to view IP address configuration,
Linux Network-related commands and linux Network-related commands
Ifconfig
Ifconfig is the command to view the NIC in centos6. In centos7, you must install the net-tools package before using it?Nic configuration file:/etc/sysconfig/network-scripts/ifcfg-ens33?Command: ifcon
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.