Using the Ssh.net library, adding a reference DLL to the project, the following code shows the SSH link Linux host executing commands and returning command execution results after clicking the button
protected void Btnexcute_click (object sender,
//servser.cpp
#include #include #include #include #define IP "
127.0.0.1 "#define PORT 8888 #pragma comment (lib," Ws2_32.lib ") using namespace std;
char* GetTime ();
int main () {wsadata wsadata;
WORD Ret; if (Ret = WSAStartup
Author: yurunsun@gmail.com Sina Weibo @ Sun Yuerun Sina blog csdn blog Date: November 17, 2012 1. The superiority of Epoll
The select that is described in the previous section has several drawbacks: there is a maximum number of listener caps
Previous operations on files were usually done in one process, and the same file was recently required to be operated on in two processes. So I thought of the file lock. Linux can use the flock () function to unlock files and other operations. A
Each host has its own routing table
#route-N
View routing Information
0.0.0.0 is the default routing information.
The method for modifying the default routing information is summarized as follows:
1. Use route command to delete
# route del-net 0.0.
after a full one weeks of rest, (*^__^*) Xi hee ..., a word, cool ...
a week has not studied, also did not paste these things. But today is the beginning of a new, so I intend to paste something up, or button interrupt, but through the work queue
Find Thread:
Ps-aux| grep Tomcat
PS is the meaning of progress status, provides us with a one-time view of the process, it provides a view of the results are not dynamic continuous;
-e Displays all processes.
-F full format.
| Pipe command
Sar–n DEV 1 2After the command 1 2 means: 1 times every second, 2 times.Dev Display Network interface informationThe-n parameter is useful, he has 6 different switches: DEV | Edev | NFS | NFSD | Sock | All.DEV Displays network interface
Mount Windows shared folders over Linux
First, stepFirst set up a shared folder for Windows, including setting the share name, secure permissions, firewall allow, share permissions. The mount commands that are installed on Linux SMBFS or
1. Makefile Introduction
Makefile is used in conjunction with the Make command.
Many large projects are compiled through Makefile, and if there is no Makefile, the dependencies between the various libraries and code in many projects are not known
The Linux operating system is a clone of the UNIX operating system, and the UNIX operating system is mainframe, which is difficult for individuals to use on UNIX operating systems, and is more commonly used by large companies or supercomputers. The
Solution to the lack of a connection library when Linux compiles programs
When Linux compiles a program, it prompts the following error if the connection library is missing:
$ gcc Test.c-o test-lxxx
/usr/bin/ld:cannot find-lxxx
Collect2:error:ld
Linux compiler to find a solution to the file
When Linux compiles a program, if you cannot find the header file, you will be prompted with the following error:$ gcc Test.c-o testTest.c:9:16:fatal error:xxx.h:no such file or directory#include The
Configuration and Basic command explanation of firewall firewalld in Linux
Firewall Introduction:
The firewall in CentOS 7 is a powerful feature that has been upgraded in the Iptables firewall in CentOS 6.5.I. Installation of FIREWALLD
# yum
Linux user identity and file permissions
the identity and ability of the user
Root is Superuser, but the UID is the one that really makes him a super userUID: Each user has a corresponding UID value
type
UID
explain
Tag:splash end kick Additional mkdir efault sys linux system linux 1. Configuring the DHCP server # yum-y install dhcp# vim/etc/dhcp/dhcpd.conf custom Subnet:subnet { ... next-server tftp-server-ip; filename
Nohuppurpose : Linux command usage, do not hang up to run the command.Grammar: Nohup Command [Arg ...] [&]Description: The nohup command runs commands specified by the command parameter and any related ARG parameters, ignoring all hang-up (SIGHUP)
Only need to extract Tomcat to multiple folders, the first one takes the default, the second is the following server.xml configuration each +1come to the second Tomcat conf directoryOpen Server.xmlTo change the port:Modify the Server.xml
ls is the most commonly used Linux basic command LS is the abbreviation of the list, LS can not only view the folder contents can also view (directory, permissions), etc. ls usage is as follows:1. Command format:ls[parameters [directory name]2.
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