Tomcat-9.0.8 installation process to configure the port number Forgot Password

First, go to the official website to download the required version of the package

Computer to be installed jdk development environment
Download:
the JDK (8.0 or later):
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Tomcat-9.0.8:
HTTPS: / /tomcat.apache.org/download-90.cgi

Second, the installation JDK, configure the environment variables

Open the installation wizard, all the way next to the path to the default (convenient, less error-prone)
Add "JAVA_HOME" and "JRE_HOME" Environment Variables

Third, configure the Tomcat environment

Unzip Tomcat-9.0.8 to the specified directory (Custom ...)

Install and start services into the bin directory tomcat hold down the shift key + right mouse button to open in the current directory of the command line interface (cmd interface or terminal interface) at the input terminal interface ". \ Startup.bat"

ps: startup.bat used Notepad to open to see what had been done, in fact, here is automatically added a "CATALINA_HOME" environment variable, after the execution to see if more than an environment variable in the computer. startup.bat startup process will automatically check what the environment is not configured, if not successful, the terminal interface (cmd window) will show why.

This step In case of doubt, refer to the official installation instructions given
https://tomcat.apache.org/tomcat-9.0-doc/setup.html

Enter in your browser "localhost: 8080" as shown below illustrates tomcat environment has been set up successfully

Fourth, if you forget the password handling

Sixth, the port number is occupied

Tomcat appears port is occupied Port 8080 required by Tomcat v9.0 Server at localhost is already in use.
1. problem: Tomcat appears port is occupied Port 8080 required by Tomcat v9.0 Server at localhost is already in use.

2. Treatment:

The process of ending occupation of the port.

First, under dos, enter netstat -ano | findstr 8080

// Description: View of the port occupation process 8080

Display process consumes port

Then, the input taskkill / pid 6856 / f

// description, comes running windows taskkill command, the process ID shown above, ending out
 

Seven, the port number in the configuration file changes

Solution:
1), open the Task Manager, locate the Tomcat process javaw.exe, will end it off. Is not resolved, look down.
Without this process, it may be occupied by other software port.
In the Start Menu -> Run -> cmd-> Enter the netstat -anb command, you can see which process is using port 8080 and 8009, and then to close the process in Task Manager.
2) modify Tomcat configuration files.
For example: C: /tomcat5.5.25/conf/server.xml
 <Connector Port = "8080" maxHttpHeaderSize = "8192"
               the maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75"
               enableLookups = "to false" the redirectPort = "8443 "acceptCount to =" 100 "
               connectionTimeout =" 20000 "disableUploadTimeout =" to true "/>
the port =" 8080 "in a port to be not occupied.

Eight, apache2.4 php7.2 or php7.3 open openssl extension

Development of the computer is win10 (x64), in order to learn laravel5.7, php has been upgraded to php7.3 (x64), but after laravel5.7 installed error

Call to undefined function openssl_cipher_iv_length()

phpinfo () to see the next Phar: OpenSSL supportdisabled (install ext / openssl), it means oepnssl extension is invalid.

What a lot of online search and copy libeay32.dll ssleay32.dll, I will not, under 64, do not have these two files php7.3 of.

Here begin the solution:

1. Check your php version

My phpinfo () to see

PHP Extension BuildAPI20180731,TS,VC15

 

2, download openssl extension dll (the core of the core of the core steps)

Step 1, I know you need to download version VC15, open the official download site:

https://windows.php.net/downloads/php-sdk/deps/vc15/x64/

I downloaded openssl-1.1.0j-vc15-x64.zip

bin directory to see libcrypto-1_1-x64.dll and libssl-1_1-x64.dll after extracting, copying the bin php and apache at

3, php and apache configuration

Configuration here is the same, many online

1) php.ini

extension=php_openssl.dll

with

extension_dir = "E:\Program Files\php73\ext"

2) apache's httpd.conf

LoadModule ssl_module modules/mod_ssl.so

 

After the restart apache, and finally succeeded, phpinfo () to see openssl module, OpenSSL support enabled, you're done.

You can have fun learning the laravel5.7

https://blog.csdn.net/michaelzhouh/article/details/86135727

Published 91 original articles · won praise 47 · views 90000 +

Guess you like

Origin blog.csdn.net/qq_30007885/article/details/103008317