본문 바로가기
반응형

Linux19

[Nginx 업로드 오류] Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) 오류 발생 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) nginx의 기본 업로드 크기가 요청보낸 업로드 용량보다 적은 경우입니다 vi /etc/nginx/nginx.conf nginx.conf인 설정파일을 에디터로 열고 (권한 오류가 있으면 명령어 앞에 sudo를 입력해줍니다) 해결 http { client_max_body_size 10M; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; in.. 2023. 1. 25.
Nginx php 연동(그누보드 php 다운로드 오류) Welcome to nginx가 index.html로 제대로 작동했지만 index.php등 php파일 경로로 이동하면 다운로드 되는 등 오류가 발생했습니다 vi /etc/nginx/nginx.conf nginx의 기본 설정 파일 nginx.conf 파일을 열어 수정합니다 # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /.. 2022. 12. 21.
[Linux]DHCP 서버 Client rpm -qa dhclient su -c 'systemctl restart network' 클라이언트에서는 dhclient가 이미 설치 되어있습니다 root 권한으로 network 서비스를 다시 재시작 해보겠습니다 IP 주소를 자동으로 할당해 줄 DHCP서버가 없으므로 실패합니다 Server yum -y install dhcp// 패키지 설치 ps -ef | grep dnsmasq// 프로세스 번호 확인 kill -9 961// 프로세스 종료 systemctl disable dnsmasq// 껏다켜도 작동안되게 상시 가동 해제 패키지를 설치하고 kill -9 명령어를 사용해 프로세스아이디(PID)를 직접 지정하여 종료합니다 vi /etc/dhcp/dhcpd.conf // 작성할 내용 ddns.. 2022. 12. 15.
[Linux] Samba 서버 Samba 서버 설정 파일(smb.conf) - /etc/samba/smb.conf 파일 [global] : 모든 자원들의 공유를 위한 설정 workgroup = Windows의 작업 그룹 이름 server string = Windows의 네트워크에 보이는 컴퓨터 이름 netbios name = Windows의 네트워크에 참가하는 컴퓨터 이름 hosts allow = Samba 서버에 접속을 허용할 컴퓨터의 IP 주소 log file = Samba 서버에 접속하는 컴퓨터의 접속 기록 파일 security = 보안 옵션(user 또는 share 또는 server 또는 domain) [공유이름] : 공유되는 디렉토리에 대한 설정 comment = 공유하는 디렉터리를 설명. 생략 가능 path = 물리적인 디.. 2022. 11. 15.
[Linux] NFS 서버 NFS Server rpm -qa nfs-utils >> nfs-utils-1.2.8-2.0.fc19.x86_64 설치가 되어있다 없다면 yum -y install nfs-utils를 입력해 설치 vi /etc/exports// 설정파일 /share 192.168.111.*(rw.sync) // 입력후 저장 /share 디렉터리에 192.168.111로 시작하는 IP에 대한 Read, Write 접근을 허용해주고 sync는 기본 설정이다 mkdir /share chmod 707 /share/ cp /boot/vm*/share share 디렉터리에 뭐든 추가해봤다 systemctl restart nfs-server systemctl enable nfs-server exports -v// 가동 확인 syst.. 2022. 11. 15.
[Linux] 클라우드 웹 서버(ownCloud, 컴파일APM) 클라우드 서비스 구축 mv /etc/yum.repos.d/backup/fedora-updates.repo /etc/yum.repos.d/ 또는 cd /etc/yum.repos.d/ mvbackup/fedora-updates.repo yum 저장소에 fedora-updates.repo가 있어야한다 없으면 위 명령어를 입력한다 ownCloud 설치 cd 다운로드/ yum -y localinstall own* own으로 시작하는 두 파일을 install한다 ls -l /var/www/html/ owncloud 파일이 생성된다 systemctl restart httpd// 재시작 firewall-config// 방화벽 재시작하고 방화벽을 열어서 http와 https를 열어준다 Client 접속 192.168.1.. 2022. 11. 15.
반응형