Security-Enhanced Linux (SELinux) - (2)
How to install packages in Rhel 7 ?
Package is a collection of software tools which are used to automate installing , updating , removing computer programs. There are two main types.- .rpm - These types are used yum install
- .deb - These types are used apt-get
Assume that we are going to install httpd service. httpd is a hyper text transfer protocol daemon.
Simply we are locally hosting a web server.
- yum install httpd
- systemctl status httpd.service
- systemctl enable httpd.service
- systemctl start httpd.service
- systemctl status httpd.service
Note that No 3 is a important command that you need to execute. systemctl enable help to start relevant service in boot up process. Otherwise you need to manually start it up.
After executing No 4 service will start.
After executing No 5 will be shown following results.
Also we can use yum group command above purpose but it is not related to rhcsa part.
- yum grouplist
- yum group install <package name>
In No 2 you have to replace <package name> with relevant package name.
After one of these method, you should open your browser and type localhost. If result came, it is successfully installed.
Use above command to query the result of installed rpm packages which are relevant to httpd.
There is policy relevant to SELinux. Manufacture made it.
Comments
Post a Comment
Thank you for your comment