Modify Apache's default portThe way to modify the Apache port is the most compromise method, the consequence is that when you open the Apache server, the access to the native address will be accompanied by a port number, such as http://localhost:8888.Modify the method is to directly modify the httpd.conf file, the location of the file in the Apache installation d
The Builder developer online CentOS modifies the default SSH Port. if the connection is successful, edit the settings of sshd_config again and delete Port22. The reason for setting two ports first and closing one after the test is successful is to change the conf to allow access in case of unknown situations such as disconnection, network disconnection, and misoperation.
The Builder developer online CentOS
Linux-CentOS7: Modify the default SSH port, centos7ssh
SSH listens to port 22 by default, but brute-force logon is often performed when the server is open to the public network, so it is better to change the port.
Refresh after reference: http://blog.csdn.net/ausboyue/articl
security riskssymbolic-links=0 [Mysqld_safe]log-error=/var /log/mysqld.logpid-file=/var/run/mysqld/mysqld.pid "My.cnf" 11L, 261C written[[email protected] etc]#4. Restart MySQL[Email protected] ~]#/etc/init.d/mysqld restartstopping mysqld: [OK]starting mysqld: [OK]5. After logging in again, check that the port has been modified to ' 3506 '.[Email protected] etc]# mysql-u root-penter password:welcome to the MySQL monitor. Commands End With; or \g.your
First, IntroductionThe default SSH port for CentOS 7.3 Mini system is TCP 22 port, and for security reasons, the default 22 port is often modified for other ports. General city by modifying the/etc/ssh/sshd_config file, the file inside the "#
ancestor configuration interface and save it as the default configuration. (That is, save Setup as DFL), and then restart minicom is just the configuration to take effect, after connecting the Development Board serial line, you can print the correct serial port information in the minicom.4. The default port/dev/tty8,
The code is as follows
Copy Code
/etc/sysconfig/iptables
Change
The code is as follows
Copy Code
/etc/httpd/conf/httpd.conf
FileFound it
The code is as follows
Copy Code
#Listen 12.34.56.78:80Listen 80Listen #我添加的默认端口
Modify Save
The code is as follows
Copy Code
Semanage port-a-T http_port_t-p TCP 66
#输入这个命令 or
In Linux, apachemysql and other services cannot be started after the default port is modified. solution: two webservers are installed on the server, and one is nginx on port 80, with no exception. Another port is Port 8001 bound to apache, but the error "Starting..." is repo
Co-management System Summerside uses Tomcat's default port 8080, with the exception of 8080-port Tomcat consuming 8005,8009 and 8443 ports. If these 4 ports are already occupied, you can modify the collaborative management system to use a different port.
The modification method is as follows:
1. If you have IIS or Ap
To improve the security of the server, this lesson is mainly about how to modify the MySQL port under Linux. Support for most system changes in Linux environments, such as CentOS and Ubuntu.
Demo Environment:
Linux CentOS 6.3 X32Mysql 5.1.66
First, edit my.conf
Vi/etc/my.conf
Second, add port=3506 under [mysqld]
Third, restart the MySQL service
#/etc/init.d/mysqld restart
Tips:0, 3506 is the
Phpstorm for Web debugging, the default is the port number 63342, in the configuration of the local PHP environment when the default ports are not necessarily 63342 this, more is the system default port number 80, then the problem arises, How to change 63342
Using the default port 3389 is a dangerous thing when you enable remote connections to the Windows operating system, and usually we change it to a more unique port so that the target system does not directly expose the Remote Desktop Connection to the network environment.Step 1: Open "Start → run" and enter "regedit" to open the Registry Editor: [Hkey_local_mach
from the online excerpt are as follows:A, () just re-open a sub-shell for a sequence of commands to executeb,{} Executes a string of commands in the current shellC, () and {} All put a string of commands inside the parentheses, and the commands are separated by a number;D, () The last command can be used without a semicolone,{} The last command to use a semicolonf,{} must have a space between the first command and the opening parenthesisG, each command in () does not have to have spaces in pare
First, modify the SSH default port
1, edit the SSH configuration file:
#vi/etc/ssh/ssh_config#vi/etc/ssh/sshd_configThe above 2 files, all remove the #port22 before "#", change 22 to a custom port, such as 2222#vi/etc/service the SSH-related port to 2222#service sshd Restart
Linux under the
First, modify the default port numberThe first step:Vi/etc/sysconfig/iptablesAdd the configuration of the modified port number-A input-p tcp-m state--state new-m TCP--dport 22001-j ACCEPTIn this example, 22001 ports are usedSave the configuration and restart the firewall after adding.Service Iptables Save (save firewall configuration)Service iptables Restart (res
1th step: If you want to restrict access to Linux via SSH IP, you can do the following:
First: Modify/etc/hosts.deny, add Sshd:all in it, and note that you can't add the # number.
Then: Modify:/etc/hosts.allow, in which the following settings are made: sshd:192.168.1.16
This setting only allows 192.168.1.16 IP to log on to the Linux machine via SSH.
Of course, as a server, do not install the GNOME and KDE graphical interface, you can increase the safety factor.
2nd Step: Modify the configur
UbuntuServer12.04 install tomcat 6 and mysql $ sudoapt-getinstallsysv-rc-conftomcat6mysql-server $ sudoufwallow80/tcp $ sudosysv-rc-conftomcat6on modify tomcat port, we seem to know that here we change 8080 to 80: $ sudovi/etc/tomca
Install Tomcat 6 and mysql on Ubuntu Server 12.04
$ Sudo apt-get install sysv-rc-conf tomcat6 mysql-server$ Sudo ufw allow 80/tcp$ Sudo sysv-rc-conf tomcat6 on
To modify the tomcat por
Network development to involve NAT, here will need to map the intranet address to the network, need to port mapping, here will be commonly used port records under the memo, but also welcome everyone to add. The 1.MySQL default port is 3306, and if you are already connected to the database, you can use the following com
One of the simplest operations:sudo UFW version firewall versions: UFW 0.29-4ubuntu1 Copyright 2008-2009 Canonical Ltd.Ubuntu system has UFW installed by default.1. Installationsudo apt-get install UFW2. Enablesudo UFW enablesudo ufw default denyAfter running the above two commands, the firewall is turned on and turned on automatically when the system starts. All external access to the native is turned off,
Effective modification of TOMCAT6 default port (Ubuntu server,centos)Ubuntu Server 12.04 installs Tomcat6 and MySQL$ sudo apt-get install sysv-rc-conf tomcat6 mysql-server$ sudo ufw allow 80/tcp$ sudo sysv-rc-conf tomcat6 onTo modify the Tomcat port, we all seem to know here to change 8080 to 80:$ sudo vi/etc/tomcat6/server.xmlconnectiontimeout= "20000"Uriencodin
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.