티스토리 뷰
1. Ubuntu
1.1 IP address setup
ip address
sudo ip address add 192.168.0.3/24 dev ens33
ping 192.168.0.2
ip link set dev ens38 up
sudo dhclient ens38
1.2 Apache install
sudo apt update
sudo apt install apache2
systemctl status apache2
1.3 vsftpd install
sudo apt install vsftpd
sudo adduser ftpadmin
1.3.1 vsftpd configure (uncommenting 2 lines, Ctrl+O to save, Ctrl + X to exit)
sudo nano /etc/vsftpd.conf
write_enable=YES
chroot_local_user=YES
1.4 Set home directory and permission
sudo usermod --home /var/www ftpadmin
sudo chown ftpadmin /var/www
sudo chmod 555 /var/www (or sudo chmod a-w /var/www)
sudo chown ftpadmin /var/www/html
1.5 restart vsftpd
sudo systemctl restart vsftpd
2. Windows 10
2.1 Enable ping request (PowerShell)
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol="icmpv4:8,any" dir=in action=allow
ping 192.168.0.3
2.2 Test apache server
browse 192.168.0.2 in MS Edge
2.3 Test FTP
Use FileZilla (username: ftpadmin, password: password)
'AU Study > ECU 191' 카테고리의 다른 글
Uni exam prep (0) | 2019.06.03 |
---|---|
Windows Server 2019 iSCSI PowerShell (0) | 2019.04.15 |