/local/apache2 directory new www folder, in The root directory for the new three virtual hosts under the WWW folder Nice1,nice2 and nice3:cd/usr/local/apache2mkdir wwwcd wwwmkdir nic1 nice2 nice3(ii) Use the echo command to generate a index.html file in the root directory of three virtual hosts:Echo " This is Nice1, welcome. "> nice1/index.htmlecho"Thisis Nice2, welcome. "> nice2/index.htmlecho"Thisis Nice3, welcome. "> nice3/index.html(4) Modify the/usr/local/apache2/conf/httpd.conf file to a
console or X terminal) that requires ncurses.
Htop is more user-friendly than traditional Linux top. It allows users to perform interactive operations, supports color themes, supports horizontal or vertical scrolling of the process list, and supports mouse operations.
Compared with top, htop has the following advantages:
You can scroll through the process list either horizontally or vertically to view all processes and complete command lines.
It is faster than top at startup.
You do not nee
For CentOS: (based on a small Red Hat system)Need to install Epel-release firstRunYum Install Epel-releaseYum Install wgetFor cent OS 7.x (X86*64)RPM -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm For cent OS 6.x (X86*64)rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm For Cent OS 6.x (i386)RPM -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm For Cent OS
Lab requirement: Build a mysql Graphics Management Tool on the server
Linux: CentOS 6.5
1. Simple deployment of LAMP Platform
# Yum-y install httpd mysql-server php-mysql php-pdo
# Rpm-ivh php-mbstring-5.3.3-26.el6.x86_64.rpm // this package is not installed on the CD, you need to download it yourself
-------------------------------------- Split line --------------------------------------
Install the LAMP \
]_39_184_sles10:/usr# ID Tatauid=1005 (Tata) gid=100 (users) groups=100 (users), 1005 (Tata)5. Delete User Tata to group Tata[Email protected]_39_184_sles10:/usr# groupmod-r Tata Tata[Email protected]_39_184_sles10:/usr# ID Tatauid=1005 (Tata) gid=100 (users) groups=100 (users)=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=Tools or commands for managing user groups (group);Groupadd Note: Add user group;GPASSWD Note: Set the group password; After you create a new group, you typic
XODA is a simple document management system. It is developed using PHP and AJAX without database. It can edit additional descriptions, tags, and categories for files and directories, and perform regular operations, such as copying, moving, renaming, and deleting. XODA Website: http://www.xoda.org.In his introduction, the author said that DreamHost, the author's favorite host provider, provided 50 GB of backup space, so he uploaded a lot of personal fi
one group, the group to which they are logged on is the primary group, and the other groups are additional groups. New group Groupadd WebUsers #新建一个webusers组删除组groupdel The initialization of the webusersuseradd also includes creating a separate group for users with the same name as the user name ( Floatboat group). This is called the mechanism of the user private group, which corresponds to the default group mechanism. The user Group One is convenient for
One, Web server and Apache1, Web server and URL
2, the history of Apache
3, supplementary
http://www.netcraft.com/can view the market share of Apache servers
At the same time must pay attention to is Ngnix, is in the rising period of strong growth, and Apache a competition for the world's feeling, really Goson ~ ~ ~ ~
second, the Apache Server Management Command
1, command start: Service httpd Start/stop/restart/reload/condrestart/status/configtest/
is/users/openstack, switch to OpenStack user, copy some files to home directory1 [[email protected] users]# useradd openstack-d/users/openstack#新建用户openstack, whose home directory is/users/openstack1 su - openstack2cp -r/etc/* ~/#切换至openstack用户, copy some/etc/files in the home directory7. Reduce MYLV1 to 5G size, switch to OpenStack user, ensure no data lossReduce logical volume size ideas:7.1. Unmount the volume and perform force detection# e2fsck-f/path/to/lv_device7.2. Reduce logical bounda
Starting from centos7, sysvinit is no longer used to manage system services. Instead, systemd is used. Therefore, the system service management method has been changed.
1. view the status of all current system services
1 systemctl
2. view the status of the specified system service
Systemctl | grep "service name"
3. Change the system service status
# Start the specified service (invalid after restart) systemctl start service name # Stop the speci
Git is an open-source distributed version control system for efficient and high-speed processing of Project version management from very small to very large. Installation steps: Operating system: centos5.5 install the GIT dependent package yuminstallzlib-develyuminstallopenssl-develyuminstall...
Git is an open-source distributed version control system for efficient and high-speed processing of Project version man
DirectAdmin is a paid virtual host management software, usually referred to as DA. DA is simpler than Cpanel in terms of functions, but it also consumes less memory. More importantly, the price is cheaper, generally, it is appropriate to use or share a DA.
Before installation, ensure that you have purchased the DirectAdmin authorization. After you have purchased the authorization, the Client ID and License ID will be available, you also need to submit
be closed after remote administration, and the rule added before the deletion iptables-d input-p tcp-m State--state new-m TCP--dport 3306-j ACCEPT Note : the above iptables Add/Remove rules are temporary and will need to be saved if a reboot is required:Service Iptables Save # or:/etc/init.d/iptables saveOther than thatVi/etc/sysconfig/iptables # plus the following line of rules is also possible-a input-p tcp-m state--state new-m TCP--dport 3306-j ACCEPTRemote
compile the software source code into machine-recognized machine language
4. Install the software to the specified location in a specific manner, using the path and function set by Mark install based on the configuration phase.
SYSTEMCTL Management Service Commands
The configuration files for packages that we install via Yum or RPM are typically placed in this directory "/usr/lib/systemd/system"
We can manage these services through SYST
It's not going to work at first.
Need to transfer around 700g of accessories
An FTP management tool with a wooden graphical interface
It's better to be PHP.
Ask the big God to point the way
Reply content:
It's not going to work at first.Need to transfer around 700g of accessoriesAn FTP management tool with a wooden graphical interfaceIt's better to be PHP.Ask the big God to point the way
Google a bi
CentOS disk management commandsCentOS disk management commands
Df disk free
Display disk Information
Df [-aHhiklmPT] [-- block-sze =
Parameters:
-A or all contains all file systems
-H: display information in a readable manner
-H or-si is the same as-h, but the calculation is 1024 bytes rather
-I: displays iNode node information.
-L only display the loca
Routine System Management for CentOS O M
1. w uptime is the same, mainly because the number after load average should not be greater than the number of cpu
2. vmstat 1 10 display 10 times every 1 second
3. top dynamic shift + m memory Priority 1 Display cpu top-bn1 static
4. sar: (yum install-y sysstat)
1) sar-n DEV 1 10 view network card Traffic
2) view cpu load using sar-q
3) sar-n DEV-f/var/log/sa *
Use the script management service in CentOS
1. Run the chkconfig tool to manage the Service Startup Script in the/etc/rc. d/init. d or/etc/init. d/directory.Add two lines at the beginning of the Service Startup Script:# Chkconfig: 2345 88 12# Description: XXXXXXXXX XXXXXXIn this way, you can use the tool chkconfig to manage the Service Startup Script.Tool: benefits of the chkconfig tool:If this tool is not
usvn are built. You need to use usvn to test whether users, user groups, and projects are created normally.
Reference link:
Http://wenku.baidu.com/link? Url = yKLV9Z1UyA3SCZqcZkDM0miWl5LWLgEJvOh_cY-iPQRIOP23sWg2sNgP_2-is2h_jeGyQfKYE0YSOL8ZMnf-ZlsQzGg-wISVWsU3FynUKwi
Http://wiki.ubuntu.org.cn/index.php? Title = Subversion
Http://wenku.baidu.com/view/b98a62cb4693daef5ef73d5d.html? Re = View
Http://zhumeng8337797.blog.163.com/blog/static/1007689142011341202582/
Http://wuyaweiwude.iteye.com/blog/1
|--checksig} package FILE650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5E/2B/wKiom1UpS-CTKlNVAAFnwE1gr3Q034.jpg "title=" 8.jpg " alt= "Wkiom1ups-ctklnvaafnwe1gr3q034.jpg"/>--nosignnature: Does not check the legitimacy of the source --nodigest: Do not check integrityRPM Manager database:/var/lib/rpm (each program installed, the installation information will be stored in this directory)Rebuild the database:--INITDB: Initialize the database, that is, the database does not exist at all,
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.