The operating system is the intermediary between humans and computer hardware. The user cannot directly interact with the computer hardware and direct the computer to work, so an intermediary is needed. This intermediary is the operating system. The user issues commands to the operating system, and the operating system directly calls the hardware to work.
2.What is Linux?Linux operating system s reason.
2 Virtual Machineis called virtual machine.
2. The value of virtual machinessituations of multiple computers to build an environment for multi-machine testing.
Three common operations
have different permissions.
Permission representation:
, letters are no longer used, but the sum of the three permission values is used, such as rwx. The corresponding number is 4+2+1=7, which corresponds to 7. It starts with d and represents a folder. The beginning of "-" indicates a file. "rw-r--r--" indicates permissions, which are creator permissions, group member permissions, and non-group member permissions. chmode 755 file: Set permissions for the creator, group members, and non-group members in sequence according to the permission value. Use vi editor for file editing. The vi editor has two states: command state and editing state. After using the vi editor to open the file, you are in the command state. At this time, click i to enter the editing state. In the editing state, click esc to exit the editing state and enter the command state, where you can enter content into the file. vi file: Use vi editor to open the file. d+b: In the command state, press d, then b, to delete the current line. esc: Exit the editing state. :wq: Save and exit. :q!: Do not save the modified content and force exit. more file: View file content, not editable. Transfer files on the local Windows operating system to the remote Linux operating system. Use the tool WinSCP. The left side shows the local operating system and the right shows Linux. To transfer files, just drag the files from one side to the other. Generally, the installation software is placed under the /usr/local/src file in the Linux operating system, and the software is installed in the /usr/local directory. To control the remote Linux server on the local Windows operating system, use the tool putty. The Linux system has JDK installed by default, and the version is lower. You need to use the following command to download: After uninstalling, use java -version to check whether the uninstallation is complete. Enter the jdk installation file directory and enter "./JDK installation file" to complete the installation. After the installation is complete, you need to configure the environment variables in the /etc/profile file . Use the vi editor to add the following content at the end of the profile file: Among them, $PATH refers to the system environment variable. When configuring environment variables in Linux, separate two adjacent paths with ":" and add "$" in front to reference the environment variable. Unzip the tomcat installation file, configure environment variables, and add: After saving, execute source profile to re-import the profile file, and the environment variables are configured. startup.sh: Start the tomcat server. shutdown.sh: Shut down the tomcat server. Unzip the MySQL installation file and execute MySQL separately using the "rpm -ivh file name" format -client-5.6.16-1.rhel5.i386.rpm/MySQL-devel-5.6.16-1.rhel5.i386.rpm /MySQL-server-5.6.16-1.rhel5.i386 .rpm three executable files. service mysql start/stop/restart: Open/stop/restart the MySQL server. First enter through the security mechanism, and then store the user name and password in the user table middle. Use ls -l or ls -al to obtain file details, as follows:
drwxr-xr-x 2 root root 4096 06-20 18:42 abc
-rw-r--r-- 1 root root 0 06-20 18:41 content.txt
-rw-r--r-- 1 root root 124 06-20 18:39 hello.java
Each visitor's permissions are composed of three parts: read, write, and execute. If a certain permission does not exist, the permission is occupied by -. Modify permissions:
6. File editing
Four file transfer
5 Remote Operation
Six JDK installation
yum -y remove java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
###############################JAVA_ENV################################
JAVA_HOME=/usr/local/jdk6
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
After the configuration is completed, save it, enter the source profile name, rewrite the imported profile file, and the environment becomes zero and the configuration is completed. Seven Tomcat Installation
###############################JAVA_ENV################################
JAVA_HOME=/usr/local/jdk6
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
Eight MySQL installation
Create user:
service mysql stop
mysqld_safe --skip-grant-tables &
mysql -uroot -p
use mysql
update user set password=PASSWORD("123")where user="root";
flush privileges;
quit;
service mysql restart
mysql -uroot -p新密码
set password=PASSWORD("123");
The above is the detailed content of Operating system--detailed introduction to Linux. For more information, please follow other related articles on the PHP Chinese website!