Linux Apache virtual directory settings
Open the/etc/httpd/conf/httpd.conf file, find , and add the following code after :
#虚拟目录节点
code is as follows
copy code
#设置欢迎界面 directoryindex index.php index.html
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
Some times our new VPS installs the GBK program when will discover the garbled problem, below we may use the following method to solve.
Find the httpd.conf in the etc/httpd/conf/directory
1. Solution One
Find "Adddefaultcharset UTF-8" and Change "
Let me introduce the relevant tutorials
The following commands need to be executed with root permission, or you will be prompted for insufficient permissions
First determine if the server has ntpdate this software:
Which ntpdate if not found, you
A friend on hand has a server that is MYSQL5.1 and needs to be upgraded to 5.5 or more, here to write down the process of upgrading to 5.5
Installing the 5.5-dependent installation package
The code is as follows
Copy Code
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
The chmod command can change permissions for all subdirectories:
To change the permissions of a file:
The code is as follows
Copy Code
chmod mode File|dir
To change permissions for all subdirectories:
Modprobe can load specified modules or a group of dependent modules. Modprobe determines the modules to be loaded based on the dependency generated by depmod. If an error occurs during the loading process, the entire group of modules will be
You can use the bind command to learn about the key combinations and functions, or you can specify which key combinations you want to use.SyntaxBind [-dlv] [-f ] [-m ] [-q ]Parameter description: -D: displays the key configuration content. -F
The Linux skill command sends a signal to the program being executed. The preset message is TERM (interrupted), and the commonly used messages are HUP, INT, KILL, STOP, CONT, and 0.Message Syntax:-9,-SIGKILL, and-KILL. You can use-l or-L to list
The Linux renice command is used to specify the priority of one or more processes (one or more based on parameters ).Note: Each Process has a unique (unique) id.Permission: all users.SyntaxRenice priority [[-p] pid...] [[-g] pgrp...] [[-u]
The virtual terminal can be locked by executing the vlock command to prevent other users from using it.SyntaxVlock [-achv]Parameter description: -A or -- all locks a terminal-phase job. If you use this parameter on a full-screen terminal, the
The Linux su command is used to change the identity of another user. Except for the root user, you need to enter the user's password.Permission: all users.SyntaxSu [-fmp] [-c command] [-s shell] [-- help] [-- version] [-] [USER [ARG]Parameter
Gitps (gnu interactive tools process status) is a command used to report and manage program execution. Basically, it reports and manages programs through ps commands, and can also be interrupted at any time through gitps commands, delete unnecessary
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
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