Install Java,sql and Tomcat under Linux:1. Java JDK Configuration:See if the Jdk:rpm-qa|grep JDK is installedInstall command: RPM-IVH jdk-7u15-linux-x64.rpmView installed version: Java-versionEdit ProfileEdit command: Vi/etc/profileTo add
Ethernet ConnectionSuch as.Practice:1. View NIC hardware information via LSPCI command2, view network card information through Ifconfig eth03. Enable the NIC via Ifup eth0Configure Network InformationPractice:Network-related configuration
Scenario 1:Ubuntu installs GNOME3, there is an easy way to install the Ubuntu gnome distribution directly. The following is the original 16.04.02LTS based on the installation of the GNOME3 desktop environment. sudo apt-get install gnome-shellsudo
Linux Exercise review1.1 Create a compressed package/etc, I want to have a date/time on the zip . [Email protected] ~]# tar zcf/tmp/etc-$ (date+%f). tar.gz/etc[Email protected] ~]# LS-L/tmp-rw-r--r--. 1 root root 9731838 3 19:15
Shutdown, restart, logoff in Linux1.1 Turn off the machineShutdown shut down the machineExpected hope, expectShutdown 1 A minute, turn it off.Cancel CancellationShutdown-h now shut down immediately.Shutdown-h shutdown after 100 minutesShutdown-h
Pre-condition: Know the normal user name to toggle (set to test)1. Current status is root user, switch to test userEnter Su-test, enter, and then input the test user's password2. Current status is test user, switch to root userSuOrSu-User name root
Use of regular expressions1.1 Creating an environmentCat >q.txtOldboy OldboyHellooldboy HellooldboyAwkoldboy AwkoldboySedoldboy Sedoldboyoldboyedu oldboyeduEofTake out only the Oldboy linegrep "\boldboy\b" Q.txtInstance 1-1 Reverse Reference[Email
Directory structure1.1 CatalogFeatures of the 1.1.1 catalogue1. Everything starts from the root2.linux The following device you have to open a portal (mount) to use1.1.2 Relative pathM relative path: In relation to the path under the current path
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/9D/E3/wKioL1mIIt_CFY--AAGutYv93B8742.png-wh_500x0-wm_ 3-wmp_4-s_940056837.png "title=" system boot process. png "alt=" wkiol1miit_cfy--aagutyv93b8742.png-wh_50 "/>1. Switch on the power
A detailed description of the TAR compression decompression command under LinuxTar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese
This warning is caused by the initialization order,
The warning code will appear!
Class Cinit
{
Public
Cinit (std::string str, int a): Str_ (str), A_ (a)
{ }
Private
int A_;
Std::string str_;
};
format : Mount [-T file system type] hangs what device hangs whereMount device , an interface device that can be used for system random access data, type B.Check the system for type B files with MD HD FD loop SD RAM.file systems that can be mounted :
Linux each executable program has the same virtual address assignment, how is the program loaded when the OS starts the process?1. Process structure BodyEach process has a task_struct structure, and the mm field of the struct is responsible for
SElinux, kernel-level hardened firewall, selinux[security enhanced Linux (Secure hardened Linux)], is a Mac that works in the kernel (Mandatory Access Control, An implementation of a mandatory access control system that explicitly indicates which
The input scanf and gets of the string, and the character string scanfgets# Include # include # define N 100int main (int argc, const char * argv []) {char str1 [N]; char str2 [N]; ① scanf ("% s ", str1); ② gets (str1); printf ("% s \ n", str1);
Linux shell basic programming 2, linuxshell BASIC Programming
While Loop
Syntax 1:
While [condition]
Do
Command Sequence
Done
Syntax 2:
While read-r line
Do
Command Sequence
Done
(Remember that while and left brackets must have spaces)
Example
1
Install git in Linux and gitLinux
Reference: https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5% AE %89%E8%A3%85-Git
Git needs to call the code of libraries such as curl, zlib, openssl, expat, and libiconv. Therefore, install these dependency
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