Linux Network Security Tips
Date: 2001-6-15
Author member name: WANGSB email:wangshoub@yeah.net
Network security is a very important topic, basically you run the service backstage more, you can open more security vulnerabilities. If configured
The SU command (switch user) switches to another identity user
su-#默认是root, the same asSu-root #切换到root用户, and to the root directory, without-switch users onlySu-c ls Root #变更帐号为root并在执行ls指令后退出变回原使用者
The sudo command, super User do, is a privilege
I. Overview
These two files are TCPD server configuration files, and TCPD servers can control the access of external IP to native services. The two configuration files are formatted as follows:
#服务进程名: Host list: Optional command action when rule
The pressure measurement involves the port limit, the system defaults to the limit, use the following command to view:
Cat/proc/sys/net/ipv4/ip_local_port_range
The result is: 32768 61000, then 32768 to 61000 ports are available, so you need
How to use
awk ' {pattern + action} ' {filenames}
Invoke awk
There are three ways of calling Awk
1. Command line mode
awk [f field-separator] ' commands ' input-file (s)Where commands is the true awk command, [-f field separator] is optional.
Usually when we deploy lamp, the HTTPD service is installed, Replacing the default httpd.conf restart httpd service with our httpd.conf may encounter some modules not compiled, the first reaction is to recompile, but Apache is supporting the dynamic
Vagrant Solve the problem
A little bit of team collaboration development experience should know how important the team collaborative development environment is, at first, everyone's development environment is Windows,max OS X,ubuntu,centos, and so
If you want to set the time to perform work, you can use the directive crontab-e to edit your own timed execution, Crontab will put the user's work settings in/var/cron/tabs.
Let's take a look at/etc/crontab's content description:
The
First we create a log file that puts the action record
The code is as follows
Copy Code
Touch/var/log/rootlog.txt
Write and append permissions for this file
The code is as follows
Copy Code
SVN, if we submit a file with permission 755 under Linux, there is a svn:excuteable in the SVN attribute.Only in the local chmod 644 filename.php, can not be caused by modification.You can remove this executable property from the SVN client in
Eval can read a series of parameters and then execute them according to their own characteristics.SyntaxEval [parameter]Parameter description: there are unlimited numbers of parameters separated by semicolons.InstanceConnect multiple commands# Eval
Userconf is actually a symbolic connection of linuxconf. It provides graphical interfaces for administrators to establish and manage various accounts. If no parameters are added, the graphic interface is displayed.SyntaxUserconf [-- addgroup ] [--
The Linux chsh command is used to change the user's shell settings.Permission: all users.SyntaxShell> chshInstanceShell> chshChanging fihanging shell for user1Password: [del]New shell [/bin/tcsh]: ### [currently used shell][Del]Shell> chsh-l ###
The Linux sudo command executes the command as a system administrator. That is to say, the command executed via sudo is like the command executed by the root user.User permissions: users who appear
Find the nginx installation source code root directory. If not, download the new source code.Http://nginx.orgTar xvzf nginx-1.3.2.tar.gzView ngixn extremely compiled parameters/Usr/local/nginx/sbin/nginx-VGo to the nginx Source Code DirectoryCd
I want to change Apache2.2 to Nginx for a few days. Today I will try it. Found a stable version: 1.4.1 http://nginx.org/download/nginx-1.4.1.zipThe configuration is very simple, that is, it is troublesome to manage nginx and php-cgi
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