Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure linux service

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to configure linux services, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this to learn, I hope you can gain something.

Check the basic conditions, physical connection, server and client are connected to switches or routes

1. Configure IP address, DNS, etc.

nmtui service network restart # ifconfig | grep -A1 flags cat /etc/resolv.conf

2. Configure the hostname hostname

effective immediately

hostname lz.com

*** Entry into force

echo lz.com> /etc/hostname

Configure hosts file

echo 192.168.220.111 lz.com>> /etc/hosts

view validation

hostname cat /etc/hostname cat /etc/hosts

3. Check whether the service pack is installed

rpm -q pkg

4. Install the service pack using rpm or yum sources

rpm -ivh /media/Packages/pkg* yum -y install pkg

5. Modify the configuration file

Find a profile

rpm -qc pkg

modify the configuration file

vim /path/filename

6. Restart service

service daemon restart

7, set the boot automatically start

chkconfig daemon on

8. Configure firewall

firewall-cmd--permanent --add-service=* firewall-cmd--permanent --add-port=*/[tcp|udp] service firewalld restart # firewall-cmd--list-services

9. If selinux needs to be adjusted

setenfore 0 set -i '/^SELINUX/s/=.*/= permissive/' /etc/selinux/config

10. Test verification

a. Local testing

b. Network test

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report