Modify the Tomcat port number method and the tomcat port number
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/arti
need to start it here.
The security option is set up to use the sending server's authorized user, the default user is "Administrators", and you can click Add to add the user.
After everything has been set up, you have embraced your own mail-sending server! Let's take a look at how to set up a letter in Outlook Express and Foxmail using your own SMTP.
Setting up Client Software
Open Outlook Express, select
PHP Mailer is a very useful PHP email sending module. It can call local SMTP to send emails or remote SMTP to send emails, however, you need to pay attention to some things during use. Otherwise, the sending may fail or cannot be called at all. This article describes the problems and solutions I encountered when using this class, briefly describe the usage and precautions of PHP mailer.
First, download the
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents (' contents.html '); $body = $_post[' body '];$body = Eregi_replace ("[]", ", $body);$mail->issmtp (); Telling the class to use SMTP$mail->smtpdebug = 2; Enables SMTP d
Phpmailer version used: 5.2.1
The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
$mail = new Phpmailer (); $body = file_get_contents (' contents.html '); $body = $_post[' body ']; $body = Eregi_replace ("[]", ", $body); $mail-gt;issmtp (); Telling the class to use SMTP $mail-gt;smtpdebug = 2; Enables SMTP
This problem is encountered when configuring the mail server (IMAIL) after the server has been reload. Server configuration before countless times, familiar, how this happened suddenly this problem.
From a single hint, the reason is obvious: SMTP authentication failed. However, Foxmail has chosen the
: 22Services: SshDescription: Pcanywhere established TCP and this end port connection may be to find SSH. There are many weaknesses in this service, and if configured in a specific pattern, many of the versions using the RSAREF library will have a number of vulnerabilities.Port: 23Services: TelnetDescription: Telnet, an intruder searches for UNIX services remotely. In most cases, this
By default, Windows opens many service ports on your computer. Hackers often use these ports to intrude. Therefore, mastering port knowledge is essential for secure Internet access.
I. Common ports and their classification
Computers need to use the TCP/IP protocol to communicate with each other over the Internet. According to the TCP/IP protocol, the computer has 256x256 (65536) ports, these ports can be divided into TCP
Server commands for SMTP, POP3, nntp, FTP, and HTTP
SMTP commands
1. mail from:
2. rcpt to:
3. Data
4. Quit
Common HTTP commands
For HTTP servers, you only need to send a GET command in the following format:
Get
The path is the valid path on the server or the file name with the complete path. After the command is
RHEL6.0 simple (smtp) Mail Server build system environment: rhel6.0-x86_64dnsserver: 192.168.0.44mailserver: 192.168.0.5clienthost: 192.168.0.6smtpserver: 192.168.0.7 (Forward mail) Configure DNS server install dns software yuminstallbindbind-chroot
RHEL6.0 simple (smtp) Mail Serve
offers a number of attentive services, if you and I just want to set up a simple system can be outgoing mail, I suggest you choose the following IMAIL services:
1.IMail SMTP Server (This is required for Wensau purposes)
2.IMail Queue Manager Service
3.IMail Web Service (if you are not all cases are automatically sent by the program, this service will give you
# import the standard smtplib libraryimport smtplibfrom eventlet import patcherpatcher.monkey_patch(all=False, socket=True) # patch socket and sslimport eventletimport sysimport emailimport getoptdef local_property(func): return property(**func())class SMTPRelayServer(object): def __init__(self, host=None, port=None, ssl=False, listen_addr=('0.0.0.0', 6000)): """host is the ip address of the server
Even though Serv-U was used as an FTP server, it seems that no one was passing files at the time, so I didn't care about it. Later, I accidentally opened the "System Log" and found many error logs that could not be sent by emails. Open the mailroot directory and find that nearly 10000 emails are accumulated under the queue, and the number of emails increases and decreases. So I realized that some outsiders
Using Phpmailer to send messages uses an unencrypted SMTP server, and the SMTP server used this time is connected using SSL (secure Sockets Layer, Secure Sockets Layer).
Fortunately, Phpmailer support SSL SMTP server, online data
=" 0 "vspace=" 0 "style=" width:600px;height:390px; "alt=" Wkiom1depuyromcpaahdeqcvdg0707.png "/>Classification of protocol port numbers:1> The port number used by the server side: Here is divided into two categories, the most important class is known as the port
This time, say "ports" and "Port numbers".Usually hear people say "open port 80th", in order to secure "do not open redundant ports" and so on. So, what are the ports or port numbers here?First, the "port" is a concept used on TCP or UDP and is often likened to "windows". Also, the
session state requests cannot be made to the session-state server. Make sure that the ASP. NET State Service (ASP) is started and that the client port is the same as the server port. If the server is on a remote computer, please check the hkey_local_machine\system\currentcon
Tags: reserve list update out IV output put deployment article1. BackgroundWhen the Linux server starts, the specified port is monitored for bind, and if the port on the same machine is already in use, the listener fails and the program fails to start.When the Linux client connects to the server accept, the system allo
/MyProject/pages/login.jsp
[Note:] The name of the red part must be the same, that is, it must be the same as the project name under tomcat.
Modify Tomcat files
1. add ROOT. xml under tomcat
My directory is like this:/opt/tomcat/conf/Catalina/localhost
Create ROOT. xml
The code is as follows:
2. modify/conf/server. xml
I. modify the default port
ROOT. xmlCopy codeThe Code is as follows:
2. Modify/conf/server. xmlI. Modify the default port number (or do not change it. The default value is generally 8080)II. Check the AJP port number (8009 cannot be modified. If this sentence is commented out, uncomment it)
III. Che
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.