# 리눅스 프로세스 파일 위치 찾기 ( CentOS 6 )
1) ps -ef | grep http
PID
2) file /proc/PID/exe
2) file /proc/PID/cwd
* PID는 숫자
* exe 실행파일명 위치 , cwd 디렉토리 위치
# CentOS 7에서 port 열기
- 기존의 iptables가 교체 되고 변경 된것으로 보인다. ( CentOS 7에서는 deprecated된 cmd가 많다)
sudo firewall-cmd --zone=public --add-port=8000/tcp --permanent
sudo firewall-cmd --reload
출처 : http://okky.kr/article/276568
# Oracle VirtualBox에서 32bit OS만 보일때는 아래 2가지를 점검
1. BIOS, Intel Virtualization Technology (Enabled)
2. Windows Features, Hyper-V conflict ( 선택 해제 )
출처 : http://www.fixedbyvonnie.com/2014/11/virtualbox-showing-32-bit-guest-versions-64-bit-host-os/#.VmZ8Dvl96Uk
# centos7에 ftp설치 하기
1. yum install vsftpd
2. firewall-cmd --permanent --add-port=21/tcp
출처 : http://www.liquidweb.com/kb/how-to-install-and-configure-vsftpd-on-centos-7/
Step 2 » After installation you can find /etc/vsftpd/vsftpd.conf file which is the main configuration file for VSFTP.
Take a backup copy before making changes .
[root@krizna ~]# mv /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.org
Now open the file and make changes as below
[root@krizna ~]# nano /etc/vsftpd/vsftpd.conf
Find this line anonymous_enable=YES ( Line no : 12 ) and change value to NO to disable anonymous FTP access.
anonymous_enable=NO
Uncomment the below line ( Line no : 100 ) to restrict users to their home directory.
chroot_local_user=YES
and add the below lines at the end of the file to enable passive mode and allow chroot writable.
allow_writeable_chroot=YES
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100
Step 3 » Now restart vsftpd service and make it start automatically after reboot.
[root@krizna ~]# systemctl restart vsftpd.service
[root@krizna ~]# systemctl enable vsftpd.service
Step 4 » Add FTP service in firewall to allow ftp ports .
[root@krizna ~]# firewall-cmd --permanent --add-service=ftp
[root@krizna ~]# firewall-cmd --reload
Step 5 » Setup SEinux to allow ftp access to the users home directories .
[root@krizna ~]# setsebool -P ftp_home_dir on
출처 : http://www.krizna.com/centos/setup-ftp-server-centos-7-vsftp/