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

Install ftp in the virtual machine

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

Share

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

Install ftp

Yum-y install vsftpd

View

Vsftpd-v

Cancel anonymous login

Modify the vsftpd.conf file

Vi / etc/vsftpd/vsftpd.conf

Change anonymous_enable=YES to NO, and then restart vsftpd

3. Set boot:

# chkconfig vsftpd on

4. Start the ftp service

# service vsftpd start

Check service status

# service vsftpd status

Stop the service:

# service vsftpd stop

Restart the service

# service vsftpd restart

Vi / etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing-SELinux security policy is enforced.

# permissive-SELinux prints warnings instead of enforcing.

# disabled-No SELinux policy is loaded.

# SELINUX=enforcing

# SELINUXTYPE= can take one of three two values:

# targeted-Targeted processes are protected

# minimum-Modification of targeted policy. Only selected processes are protected.

# mls-Multi Level Security protection.

# SELINUXTYPE=targeted

SELINUX=disabled

Setenforce 0

View SELinux status:

# getenforce

After modification, restart reboot, and then execute the getenforce command to check the SELinux status

[root@localhost ~] # getenforce

Disabled

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