First of all, let's open the command interface of the Linux to view the port, as shown in the figure: in order to get higher permissions (view all ports), the first way to switch root user login here is to use the lsof command, taking 80 as an example, as shown in the figure: if there is no output
On linux systems, the location of the configuration file is usually / etc/my.cnf or / etc/MySQL/my.cnf. We have seen some people try to modify the configuration file but it does not work because they are not modifying the file read by the server. For example, Debi
Separated by semicolons, indicating that the command will be executed regardless of whether it is executed successfully or not [root@localhost /] # date;date;date2019 05.03 Friday 09:08:37 CST2019 05.03
The main configuration file for Apache is / etc/httpd/conf/httpd.conf. It contains many configurations that do not need to be changed in the basic installation. In fact, you only need to make some changes to this file to get a simple Web site up and running. The file
Open the terminal, enter head-3 / etc/passwd, enter, and you can check the first three passwords. Open the terminal, enter cat / etc/shadow, enter, and you can see all the users and passwords. Open the terminal and type ls-l / etc/pass
Specific method: you can use the following command to check the startup status of mysql: # service mysqld status or # service mysql status if it is mysqld is stopped, that means
Reason: the ftp tool cannot connect to the Linux server and the file cannot be uploaded because your ftp server is not built (or started). Build process: 1, install vsftpd login Linux server, execute the following command, install vsftpd. Yum
Preparation: check the VMware server startup, five full open mode vmnet8 open mode configuration VMware switch ip address, here: network: VMnet8 (fixed) subnet ip:192.168.5.0 (fixed) subnet mask: 255.2
First create a folder to hold the script files you wrote. Find the path to the execution program you want to open. Take Firefox as an example. There is an execution program for Firefox under / usr/bin. Enter cd / usr/local/myShell to enter the folder you just created. And then
The following content is from set nocompatibleset history=100filetype onfiletype plugin onfiletype indent, "shell programming practice" published by the old boy.
First, open the command console to find the file you want to edit, execute the command ls to see how many files are below, I have an index.php file below, and then execute the command vi index.php. If you want to modify the contents of this file at this time, press the'I 'key on the keyboard, the most
First of all, let's talk about the command for touch to create files. Touch can be used to create binaries, which is very simple to use. Usage: touch+ file name, there must be a space between touch and file name. In the picture, first use the previously shared commands to see how many texts are under the / directory.
After rebooting the system, the GRUB interface appears on the bootloader menu. Use the up and down keys to select the system for which you forgot your password and type "e" to enter edit mode. Next you can see the picture shown in the following figure, and then you use the arrow keys to select the latest kernel (here is the second line, kern
Hosts is a system file without an extension, and its function is to establish an associated "database" between some commonly used URL domain names and their corresponding IP addresses. When a user enters a URL that needs to be logged in in the browser, the system will first automatically find the corresponding IP from the Hosts file.
Files compressed on windows are compressed in Chinese by default. Because its encoding is not declared in the zip file, the unzip on linux is generally decompressed with the default encoding, and the Chinese file name will be garbled. There are two ways to solve the problem: 1. Through unzi
The hosts file can be modified on the Linux through the command line or through the graphical interface, which we introduce in turn, first through the command line, taking the CentOS/RHEL distribution as an example. This version of the hosts file is in the / etc directory, and the command to open using the editor is: v
Firewall technology is a technology that helps computer networks build a relatively isolated protection barrier between their internal and external networks by organically combining all kinds of software and hardware equipment used for security management and screening, in order to protect the security of user data and information. The main function of firewall technology is to find and deal with the meter in time.
Shell: Shell refers to software (command parser) that "provides the user with an interface". When we use Linux, we do not deal directly with the system, but through the intermediate program of Shell. Why is it called shell? it's because it hides the underlying operating system.
Tool: linux virtual machine rarlinux decompression step: download the rarlinux installation package, upload the installation package to the virtual machine, extract the rarlinux, find the rar file in the virtual machine, and extract the command as follows: rar x 111.rar decompressed successfully above is lin.
The command is as follows: chmod-R 777 filename parameter-R means recursion, and 777 means to open all permissions. For example: chmod 777 test.sh add: if you add executable permissions to everyone: chmod asancx file name if you give it to the file