Installing programs in Linux

Source: Internet
Author: User
Tags create directory

Experiment: Install applications for Linux hosts

Environment: VMware Workstation 14. redhad-server-6.4
Requirements: 1. Use RPM package to install Mozilla Firefox browser
2. Installing Apache using source code package compilation
3. Use the RPM package to install the Webmin management software and use the RPM query software for the purpose, file list
Idea: Download the required packages
Install Mozilla Firefox browser using the RPM package
Use the Add/Remove software feature to remove Mozilla Firefox browser and install it
Configuration steps:
Attach the disc to the desktop

1. Install Mozilla Firefox Browser using the RPM package



Use the rpm-q [software name] command to view the Web that has Apache installed in the system, do not have DHCP installed, use the-l option to view the location of the files installed by the installed software, and join the-I option to view the software's details

With the RPM command, follow the-QF option and you can see that the VIM software is installed by the vim-enhanced-7.2.411-1.8.el6.x86_64 package.

2. Installing Apache using source code package compilation
Unzip the source package using the TAR command

Enter the directory into which the source package is extracted./configure--help view Help, and then enter the./configure--prefix=/usr/local/apache to complete the configuration

In the directory extracted from the source package, enter the make && make install command to complete the automatic installation after compiling

Vim Edit httpd.conf config file, remove 97 lines of # Memo characters

Enter the specified path/usr/local/apache, enter the/bin folder, enter the Apachectl start command, start the HTTP service

Go to Firefox, enter 127.0.0.1 to view native Apache running status

3. Use the RPM package to install the Webmin management software and use the RPM query software for the purpose, file list


Experiment: User and file Rights management

Environment: VMware Workstation 14. redhad-server-6.4
Requirement Description: 1. Create a user directory
2. Add group account, user account
3. Set directory Permissions and attribution
4. Create a common data store directory
Idea: Use the mkdir command to create a related directory
Add users and groups using the Useradd, Groupadd command
Configuration steps:
Rehl managing user and group accounts
Add user account

Use the USERMOD-L Test command to lock the account; Use the usermod-u Test command to unlock the account

Using the Userdel command to delete the test account, you can see that the test account has not been seen in the passwd and shadow files.

1. Establish user directory: Create directory/tech/benet and/TECH/ACCP, as the host folder for user account; A group named test123 was added with the Groupadd command

Add the test01 user account to the test123 group.

To delete a test123 group using the Groupdel command

Use the Groups command to query the group to which the test01 user account belongs; Use the ID command to query the identity of the user account

2. Add group account, user account:
Add group account Benet and Accp,gid numbers are set to 1001 and 1002 respectively, add group account Tech,gid number is set to 200; Add users to the Benet group, Kylin, Benet, and Obama, each using a folder with the same name as the account in the/tech/benet/directory. Where Kylin user account is set to expire after December 31, 2018

Add users to the ACCP group, in Handy, Cucci, and the home directory using the folder with the same name as the account in the/tech/accp/directory. Where the Cucci user's login shell is set to/bin/sh

Add all of the above accounts to the tech group

3. Set directory Permissions and attribution
Set the/tech directory group as tech to remove all permissions from other users

Set the genus of the/tech/benet directory to Benet, removing all permissions from other users; Set the genus group of the/TECH/ACCP directory to ACCP, removing all permissions from other users

4. Create a common data store directory


Installing programs in Linux

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.