J2EE programmers should master Linux knowledge

xiaoxiao2021-03-06  65

Copyright Notice: If there is a reprint request, please indicate: http://blog.9cbs.net/yzhz General Large J2EE Application is constructed in a Linux environment. In the development environment, we can map with local network drives through Samba, and program debugging directly in a Windows environment. But the last release is still going to the Linux environment, and we have the application management of the web server and database server (such as automatic script release, etc.), whether the web service is normal, the use of the mysql database, system monitoring (monitoring disk Space usage, etc.) require programmers to familiarize with the necessary Linux knowledge. Of course, the programmer does not have to be proficient in the entire Linux system. Because of the experience developed, listing Linux knowledge that the programmer must have mastered. First, Linux basic command 1. User management userDel delete user account USERADD Add User Account SU to change the current user ID2, file directory management LS browse directory, see the files and file names CHMOD in the current directory CHOWN change file owner CP copy file CD Change the current directory MV rename file or mobile file RM Remove file or directory PWD Current Directory SCP Remote Copy Alias ​​alias 3, other commands ln builds link TAIL output files behind the part, usually we pass TAIL -F looks in real time to view the log of the current program. Type View a command location path WC View Route Grep Finding Find Find file Date in file content View Date crontab Develop plan tasks, usually used for system monitoring. DF View disk remaining space, you'd better write a script monitoring disk in crontab. More than 90% will send Email to the relevant personnel. PS View Process Status TOP View CPU Usage Kill Termination Process KILLALL JAVA programmer favorite with KILLALL -9 JAVA WVAEW to view login users and what they are doing, or look at the system's LOAD. LOAD is too high, I should find a reason. WHO View the current user's convenient situation TAR decompressed or compressed file Echo console output wget HTTP Access RPM RPM package management

4, redirection, pipe 5, standard output, standard error 6, use / block a special character's meaning 7, regular expression

Second, proficient in the VIM editor.

Third, the shell script under the liunx environment, the writing of Perl scripts In order to manage online server applications, some scripts are often required. The script is written in the following points: 1. Understand the meaning of double quotes, single quotes, and reverse quotation marks. 2, the use of anti-oblique lines. 3, the number of variables left on the left of the shell script not to add $, which is often written for the Perl script. 4, the string is relatively long, when the space is contained, the script is wrong when a parameter is wrong, and the characters are brought by double quotes. 5, master the usage of awk and sed.

Fourth, the basic package installation apache, resin, mysql general step is: Configuremakemake Install

5. The website below related websites is a relatively excellent Linux website, you can go see. http://www.linuxforum.net/

转载请注明原文地址:https://www.9cbs.com/read-86583.html

New Post(0)