


1 Overview
1. What is an operating system?
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?Like the Windows operating system, Linux is also an operating system. At present, most web servers use Linux, which is why java programmers are familiar with it.
Linux operating system s reason.
2 Virtual Machine1. What is a virtual machine?
A computer with real computer logic factors that is built using software simulation on a physical computer. Since the computer has no independent physical structure,
is called virtual machine.
2. The value of virtual machinesYou can create multiple logical computers on a physical computer, that is, virtual machines, each The virtual machines are independent of each other, thus using one physical computer to create
situations of multiple computers to build an environment for multi-machine testing.
Three common operations1. Auxiliary general operations
- ctrl+alt: Make the mouse arrow exit the Linux operating system and enter the Window operating system.
- ifconfig: View ip.
- clear: Clear the screen.
- cd ~: Return to the working directory.
- # cd directory: Enter the specified directory.
- cd ..: Return to the upper directory.
- pwd: View current location.
- touch filename: Create in the current directory document.
- mkdir dir: Create a folder in the current directory.
- rm -rf filename: Delete the file or folder with the specified name in the current directory.
- rmdir dir: Delete empty folders.
- ls: View all visible files under the current path with folders.
- ls -l: View detailed information about all visible files and folders in the current directory.
- ls -a: View all files and folders in the current directory, including hidden folders and files.
- ls -al: View detailed information about all files and folders in the current directory, including hidden folders and files.
- cp oldfile dir: copy the file to the specified folder.
- mv oldfile dir: Cut the file to the specified folder.
- mv oldname newname: Rename the file.
Linux divides file visitors into three categories: file creators, Members of the same group as the file's creator, and members of a different group than the file's creator. Different visitors
have different permissions.
Permission representation:- r: read, read.
- w: write, write.
- # x: execute, execute.
, 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!

linux设备节点是应用程序和设备驱动程序沟通的一个桥梁;设备节点被创建在“/dev”,是连接内核与用户层的枢纽,相当于硬盘的inode一样的东西,记录了硬件设备的位置和信息。设备节点使用户可以与内核进行硬件的沟通,读写设备以及其他的操作。

区别:1、open是UNIX系统调用函数,而fopen是ANSIC标准中的C语言库函数;2、open的移植性没fopen好;3、fopen只能操纵普通正规文件,而open可以操作普通文件、网络套接字等;4、open无缓冲,fopen有缓冲。

端口映射又称端口转发,是指将外部主机的IP地址的端口映射到Intranet中的一台计算机,当用户访问外网IP的这个端口时,服务器自动将请求映射到对应局域网内部的机器上;可以通过使用动态或固定的公共网络IP路由ADSL宽带路由器来实现。

在linux中,eof是自定义终止符,是“END Of File”的缩写;因为是自定义的终止符,所以eof就不是固定的,可以随意的设置别名,linux中按“ctrl+d”就代表eof,eof一般会配合cat命令用于多行文本输出,指文件末尾。

在linux中,可以利用“rpm -qa pcre”命令判断pcre是否安装;rpm命令专门用于管理各项套件,使用该命令后,若结果中出现pcre的版本信息,则表示pcre已经安装,若没有出现版本信息,则表示没有安装pcre。

linux查询mac地址的方法:1、打开系统,在桌面中点击鼠标右键,选择“打开终端”;2、在终端中,执行“ifconfig”命令,查看输出结果,在输出信息第四行中紧跟“ether”单词后的字符串就是mac地址。

在linux中,rpc是远程过程调用的意思,是Reomote Procedure Call的缩写,特指一种隐藏了过程调用时实际通信细节的IPC方法;linux中通过RPC可以充分利用非共享内存的多处理器环境,提高系统资源的利用率。

手机远程linux工具有:1、JuiceSSH,是一款功能强大的安卓SSH客户端应用,可直接对linux服务进行管理;2、Termius,可以利用手机来连接Linux服务器;3、Termux,一个强大的远程终端工具;4、向日葵远程控制等等。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool