introduction of Redis package in Project
Download the jar package and import your own project based on the jar package path given in the previous article. (Jedis-2.7.2.jar)
second, connect with Redis
(1) Connection IP and port number, connection password modification
By Redis the IP address and port number of the ser
Because of the work required, you often use Remote Desktop to connect to a Windows server. Windows has a default Remote Desktop port number of 3389, to increase server security, in addition to the hardware device rules, you can also use the Windows-brought policy to increase the security of Windows Server.Below take windows2008r2 as an example, set up two kinds of strategies:(two kinds of any one, can not be effective at the same time)
Remote
"title=" 2.PNG " alt= "Wkiom1cjelhd05o4aacongwt3ry185.png"/>After installing the SSH server, try to connect it with Xshell, and find that it can be connected. Such as:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/CE/wKioL1cJEp6TtSo4AAAsEB0I6eo988.png "title=" 1.PNG " alt= "Wkiol1cjep6ttso4aaaseb0i6eo988.png"/>The above is my study in the process of some experience summary. Of course, my ability is limited, there will inevitably be flaws, I hope you can correct me. This article
//apr-util-1.6.1 configuration cd/usr/src/apr-util-1.6.1./configure--prefix=/usr/local/apr-util-- with-apr=/usr/local/apr//compile and install make make install//compile and install Httpdwget http://mirror.bit.edu.cn/apache//httpd/ Httpd-2.4.34.tar.bz2[[emailprotected] ~]# lshttpd-2.4.34.tar.bz2[[emailprotected] ~]# tar XF Httpd-2.4.34.tar.bz2[[emailprotected] ~]# CD httpd-2.4.34[[emailprotected] httpd-2.4.34]#./configure-- Prefix=/usr/local/apache--sysconfdir=/etc/httpd24--enable-so--enable-ss
Python manage.py runserver 0.0.0.0:8000Run the program locally, python manager.py runserver open the http://127.0.0.1:5000 port view, press CTRL + C to exit the program.At this point, the default only local access to the site, if you need other people can also access, you need to specify 0.0.0.0 this IPWe need to add the parameter:--host 0.0.0.0. When someone else accesses it, enter the IP address of the co
When we connect the device via IP and port, sometimes we need to give the user a response in a few seconds for the user experience, which requires some way to judge: Public voidConnect (String server,intServport)throwsioexception,unknownhostexception, sockettimeoutexception { inetaddress ad=inetaddress.getbyname (server); BooleanState = Ad.isreachable (+);//test whether the address can be reached, determine
Everyone knows that the sharepoint2013 default installation uses 80 ports, HTTP can be accessed normally, but what do you do if you want to do NAT to public network to allow people from other cities to access your website via public IP? Unfortunately, you use the broadband of China Telecom, the default port 80 is blocked, you can also solve this problem?The answer is: Yes1, SharePoint extension, specificall
After the router WAN Port Setup completes and the network is successful, the front-end broadband line assigns an IP address to the WAN, and this article describes how to view the IP address obtained by the router WAN port.
Division I router from the management interface can be divided into cloud routers, a new inte
Today, I want to share with you how to change the default ssh port in linux and how to restrict the logon of a specified IP address and prevent the ROOT user from logging on to the server remotely.
1. Modify the default SSH port
The Code is as follows:
Copy code
// Modify the configuration fileVi/etc/ssh/sshd_config// Modify #
1. Password: Connect the keyboard and monitor and enter the command "Cat/etc/ftpdpass"(note that there is a space character behind the cat). Enter this command, and you can see a message similar to the following, the password found on the router is "abcd1234"2. PORT: Enter the command "Netstat-na|grep LISTEN"(note netstat, there are spaces behind grep, and LISTEN to capitalize). Enter this command, and you can see a message similar to the following,
Iptables only allows the specified IP address to access the specified port
First, clear all pre-settings
Iptables-F # clear rules of all rule chains in the filter of the preset tableIptables-X # Clear the rules in the User-Defined chain in the filter of the preset table
Second, set to allow only the specified IP address to access the specified
For example, there is a connection inside the page, and the complete path should be http://192.168.0.1:8080/myblog/authen/login.doWhere HTTP://server/is the basic path of the server, MyBlog is the name of the current application, then my root path should be so http://localhost:80/myblog/. String path = Request.getcontextpath ();String basepath = Request.getscheme ()+ "://"+request.getservername () + ":" +request.getserverport () +path+ "/";This statement is used to assemble the relative path of
The following lists are common (go from address: 78357238?locationnum=9fps=11. Set or get the entire URL as a stringWindow.location.href2. set or get the protocol portion of the URLWindow.location.protocol3. set or get the host part of the URLWindow.location.host4. set or get the port number associated with the URLWindow.location.port5. set or get the path portion of the URL (that is, the file address)Window.location.pathname6. set or get the part of
Tables: protocols for each layer of the TCP/IP Reference Model
Application Layer
FTP, TELNET, HTTP
SNMP, DNS
Transport Layer
Tcp
Udp
Network interconnection Layer
Ip
Host-Network layer
Ethernet: IEEE802.3Token Ring Network: IEEE802.4
Table: Ports used by some general-purpose services in the application tier
Se
There are two methods in cisco:
1. traceroute mac ip 211.151.181.70 211.151.181.78 the first ip address is the source ip address and the second ip address is the destination ip address. The result is as follows:
Ource d4be. d9ae. e669 found on Switch
1 Switch (211.151.181
#由于是多 IP listens to the same port so write this
The code is as follows
Copy Code
Listen 80#若是多ip Multi-Port is#Listen 192.170.2.1:80#Listen 192.170.2.5:8000#由于使用多ip Namevirtualhost This settingNamevirtualhost 1.2.3.4:80Namevirtualhost 5.6.7.8:80#
Get the domain name of the URL in Java or IP and port get IP and domain name method one, use regular expressionsPublicstatic string GetIP (string url) {Filter using regular expressions, String re =((HTTP|FTP|HTTPS)://) (([a-za-z0-9._-]+) | ( [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3})) (([a-za-z]{2,6}) | (: [0-9]{1,4})? "; Stringstr ="";Compile reg
After mapping, put the port can not give my IP, but the website cannot access
After mapping, put the port to my local IP, but the extranet cannot access my station.
and use local IP to LAN other computer access can not, in their own computer to lose local
Error: "Connect timed out. Verify the connection properties and check that the instance of SQL Server is running on the host, accept TCP/IP connections on this port, and make sure that the firewall does not block TCP connections to this port. "The problem with this connection error.The problem of error. Now, the small part to share the solution to this problem, h
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.