When we conduct system security protection, we need to prevent Trojans, and there is a network connection to the Trojan. We detect the data port and process mode to prevent Trojans.
We use VC ++ to detect Data ports and processes. For more information, see code implementation and annotations.
# Include
]DocumentRoot "C:/develop"ServerName localhostErrorlog "Logs/dummy-host2.localhost-error.log"Customlog "Logs/dummy-host2.localhost-access.log" common
Restart Apache
Visit the site and you can see the content.650) this.width=650; "Src=" http://images.cnitblog.com/blog/11371/201305/ 11180037-59b6ac068f8e44929482d33882d7d3fb.png "style=" border:0px; "/>
Note:When you do the test program, you do not have to establish a port, there are three ways:
Multisite:
Now many projects are using the cloud server, a recent project using the Wayun server, that is, Unicom's cloud server, toss a long time to find the clue, today's experience to share with you how the Wayun server development port.Tools/Materials
Server
Computer
Method/Step1, first in the portal login your account password, into the background management interface,.2, click on the left side of the menu security group, enter the security group settings interface, in which will sho
"Problem phenomenon"Three virtual machines, respectively, master,slave1,slave2, according to the online step configuration start Hadoop, is no datanode, from the Slave1 log, is due to the request was refuse dropped."Problem Solving"In Master's host file IP mapping, master is mapped to 127.0.0.1 by default and needs to be commented out. (Host file location/etc/hosts)127.0.0.1 localhost#127.0.1.1 Master10.0.10.229 slave110.0.10.228 Slave2Note: This detail problem is easy to toss new people."HADOOP
Find the service name with the specified port and protocol if you want to find a network service, it is best to know which port the service is running on TCP or UDP protocol. If you know the port that the Network service uses, you can call the Getservbyport () function in the socket library to get the name of the service.Technical Point decomposition:1, define the Find_service_name () function, note the code indentation in the function2, Getservbyport (Port,port_type), through the port lookup se
same client accesses App1 and then accesses APP2, it will find that the APP1 session is missing.When the client accesses App1, Domain01 retains a cookie named Jsessionid on the client, records the DOMAIN01 information, jsessionid the default value of WebLogic Cookie-name, When the same client accesses APP2, the Jsessionid value in the client cookie is Domain02 refreshed, and if you continue to access App1 in the previously opened IE, the session is lost (Jsessionid has been Domain02 refreshed!)
Redis is only locally accessed by default after Ubuntu installation and requires additional IP access we need to modify the Redis configuration file1. Dpkg-l Redis-serverThis command we can see the Redis installed files in those directories2. We then modify the configuration filesudo vim/etc/redis/redis.confThis is what I changed, by default it's 127.0.0.1.Here I change is 0.0.0.0 that is the arbitrary IP can be accessed, of course, can also configure multiple IP access, multiple IPs separated b
The 1.Netstat command is used to display various network-related information such as network connections, routing tables, Interface states (Interface Statistics), masquerade connections, multicast members (multicast memberships), and so on.2.lsof (list open files) is a tool that lists open files for the current system.The 3.kill command ends a process by sending a specified signal to the process.So, there are two ways to do this:Lsof-i: 8001Netstat-apn|grep 8001Release the port on the PID corres
Linux Modify SSH Port 22Vi/etc/ssh/ssh_configVi/etc/ssh/sshd_configAnd then modify it to port 8888.Service sshd Restart as root (Redhat AS3)Using putty, Port 8888Linux under the default SSH port is 22, for security purposes, now modify the SSH port is 1433, modify the method as follows:/usr/sbin/sshd-p 1433To enhance securityFirst, add a user with normal permissions:#useradd Uploader#passwd UploaderSet PasswordThe production machine prohibits root remote SSH login:#vi/etc/ssh/sshd_configPutPermi
Our firewall default rules are as follows:If the firewall releases the port but still cannot access it, it may be because the rule is added with the IPTABLES-A option, so that the added rule is arranged after the 6th rule, although the service Iptables status shows that the port is released, but in fact, As a result of rule sixth, the new addition does not work.Instead, use iptables-i to insert the rule, and before you add the rule 6th, you are ready to take effect.The Linux firewall has release
Modify Port Online A lot of the saying doesn't work (like this)D:\.......memcached-p 10000-d StartNow there are two ways to fix this.① directly modify the registryHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcached Server其中的ImagePath项的值为:"c:\memcached\memcached.exe"-d runservice改成:"c:\memcached\memcached.exe"-p 15000 -d runservice② using SC commandSC create "memcached Server" binpath= "\" Z:\memcached\memcached.exe\ "-p 12345-m 256-d runservice" Start=auto Displa Yname= "Memcached Se
A lot of Linux distributions, the default Iptables service started only the most basic port, such as 22 port, but the other is forbidden State, because when you need to use a certain software or services will find its port is not working, you telnet not up!This time you can pass Netstat-an | grep port number to verify that the next is not already open a service if not to start it, Redhat series is generally: Service xxx start or/etc/init.d/xxx start if determined to be open, it is likely that th
1, #tar-zvxf driv_linux_smart_v1.16_build_14030317 (Decompression drive package)2. # Cd/moxa/mxser/driver#./msmknod (Create TTY number, will come out dialog box, enter just fine)3. # make (Build driver)4, #make Install (Installation drive)5, #modprobe Mxser Note that there is no error in the SLE11SP1, but actually did not load successfully, you can use the Self-test tool in the package to see, Mxser\utility\diag\mxdiag, only in the PCI see there are two lines, on the pci-e found nothing. So we d
A note previously written, occasionally flipped out, put here to make a souvenirLinuxunderIOPort Programmatic AccessThe method recorded here is to access the IO port in the user state and does not involve the driver programming. First to include the header file/usr/include/asm/io.hIoperm ()Declared in the unistd.h . Used to open access to the IO Port, requiring the program to execute with root privileges. Only the IO Port of the address segment of 0x00 to 0x3ff can be opened . Ioperm (from, NUM,
The process of configuring the database found a problem with Windows connecting to the Linux database server, checking to see that Linux is not yet open 1521 portConfiguration, very easyReferenced by: http://www.cnblogs.com/kerrycode/archive/2012/12/14/2818421.html1. Someone directly service iptables stop, that is, shutting down the firewall, this is basically not feasible, because it is too insecure2. Release the 1521 port/sbin/iptables-i input-p TCP--dport 1521-j Accpet/etc/init.d/iptables Sav
Reprint please indicate the source: The Curtain Roll westerly column (Http://blog.csdn.net/ljxfblog)All along, in the process of processing a Linux server, often encountered a problem, sometimes after the kill process, the port is occupied, the new process has not come, wait a few 10 seconds to start normally. So there has been no special treatment for this problem.In the recent week, this is a frequent occurrence, waiting for a long time can not start a new process, always prompt port is occupi
1, prohibit the root user login ssh
The code is as follows:
#vi/etc/ssh/sshd_config
Put
The code is as follows:
Permitrootlogin Yes
To
The code is as follows:
Permitrootlogin No
Restart the sshd service
The code is as follows:
#service sshd Restart
Using root login At this point will be prompted to reject:
The code is as follows:
Login As:root
Root@192.168.8.100 ' s Password:
Access denied
2. Modify SSH default port
The code is as follows:
Vi/etc/ssh/sshd_config
Find #port 22
Installation method: Yum install-y lsofSpecific parameters:Lsof Abc.txt shows the process of opening the file Abc.txtLsof-i: 22 Know what program 22 port is running nowLsof-c NSD Show NSD process now open fileLsof-g GID shows the process of attribution to GIDLsof +d/usr/local/displays files that were opened by the process in the directoryLsof +d/usr/local/, but will search the directory under the directory, the time is longerThis article from "Senlinux" blog, reproduced please contact the author
Linux open 1521 port allows network connection to Oracle ListenerSymptoms:1. TCP/IP connectivity is on-the-pass. You can test with the ping command.2. The Oracle listener on the server has been started.Lsnrctl Status View Listener stateLsnrctl Start Oracle Listener3. The error message that the client gets is usually: Ora-12170:tns: Connection timed outAt this point, we can basically be sure that the server is not open 1521 port (assuming you use the default settings)Workaround:1. If you are in a
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.