In Linux, Apache and MYSQLD join service system ServicesLet's add MySQL to the Linux system service.Mysql:
The code is as follows
Copy Code
Cd/usr/local/mysql/share/mysqlCP Mysql.server/etc/init.d/mysqldChkconfig--
The Linux directory is a sort of inverted tree structure, which has/bin this is generally a directory with many commands integrated[Email protected]/]# ls-ld bin/Dr-xr-xr-x. 2 root root 4096 Apr 03:20 bin/ENV view under Environment
1,/usr UNIX software resource files about the software are stored in this directory2, only the root directory will be mounted, and the other partitions will continue to mount after the boot is completed.3, the subdirectory under the root directory
0. InstallationSystem automatic installation or source code can be.Configuration, add your own configuration items at the end of the original default profile, and you may need to configure the previous default configuration items for special
First we may use free to see the memory usage, it should be like this[Email protected] ~]# free-m total used free shared buffers cachedmem:32040 31707 332 0 498 27649-/+ buffers/cache:3559 28480swap:16087 0 16087# #实际上在一个进程结束后其内存是会被释放的, but
environment variable Problem of Linux$PATH, first in the/etc/profile, and then, under the user directory under ~/.bash_profile if there is a definition, will be overwritten to the previous $path also note that if the user sudo su switch to root,
Third, the special permissions of the file SetUID,SetGID,Sticky BIT1,SetUID1) What is SetUID?the SetUID function can be understood as follows:only binary programs can be executed to set The SUID permission Command performer obtains the program file
/binBin is the abbreviation for binary. This directory inherits the structure of the UNIX system and stores the commands most often used by the user. such as CP, LS, cat, and so on./bootHere are some of the core files used when starting
system Calls
01. What is a system call?
02, the Linux system call I/O operation (file operation)
03. Copy of File Descriptor: DUP (), dup2 ()
Multitasking for multi-process tasks
04, Introduction to the process
FG, BG, Jobs, &, CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also useful
&is most often used inThis is used at the end of a command, you can put this command in the background to
In a clustered environment, it is often necessary to synchronize directories after patching or installing new software.Below I have made a script that is used to complete the process.Because there is no SSH trust between the two machines, you need
Linux regular expression-positioning metacharacters and linux Regular Expressions
Two metacharacters are used to specify whether a string appears at the beginning or end of a row. A single character regular expression that indicates the start. The
Ubuntu14.04lts install vncserver
Previously, I installed vncserver many times on centos and wrote an installation document on centos 7. Recently, I have learned that I have failed to install it on ubuntu several times. This time I finally got it
Shell review notes ---- user management, shell ---- user management
$ Who can know the number of logins to the System
$ Who | wc-l: calculate the number of users
Note: | it is a pipeline symbol. pipeline can be established between two programs
CentOS SEARCH Command
Introduction to search commands today
Files cannot be found in windows. We will use some search commands to help ourselves find what we want.
In linux and I have been writing centos, THE SEARCH Command is equally
CentOS6 configure tomcat to build a JSP Application Server
First, let's take a look at the differences between jdk and jre:
JDK: an SDK (software development kit) for developers. It provides a development environment and a running environment. Jre
Centos6.4 LAMP Server Installation Configuration
LAMP refers to the first letter of the Linux (operating system), ApacheHTTP server, MySQL (sometimes MariaDB, database software), and PHP (sometimes Perl or Python, it is generally used to build a web
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service