분류 전체보기(986)
-
조치 방법 모름
audit2why < /var/log/audit/audit.log type=AVC msg=audit(1610170213.215:77): avc: denied { map } for pid=1594 comm="httpd" path="/run/httpd/mod_jk.shm.1594" dev="tmpfs" ino=43327 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_var_run_t:s0 tclass=file permissive=0 Was caused by: Unknown - would be allowed by active policy Possible mismatch between this policy and the one un..
2021.01.09 -
AJP 접속 IP 제한
server.xml Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. address를 '0.0.0.0'으로 변경하여 제한 해제
2021.01.09 -
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl start httpd 실행 1월 06 21:20:30 localhost.localdomain httpd[7627]: httpd: Syntax error on line 59 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `jk_moudle' in file /etc/ht> 오타로 인한 에러 LoadModule jk_module modles/mode_jk.so -> LoadModule jk_module modules/mode_jk.so ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; v..
2021.01.09 -
아파치 버전 확인
httpd -v httpd -V
2021.01.09 -
Django Admin list_display 재컴파일 없이 갱신
DB 또는 파일에 정보를 넣어서 관리하고, 정보만 바꾸면 적용되도록 처리 def get_list_display(self, request) : def get_list_filter(self, request) : def get_search_fields(self, request) : list_editable은 안됨 get_list_display에 넣어 처리하면 됨
2021.01.08 -
Django Admin에 버튼 추가
project 레벨에서는 템플릿 파일을 오버라이딩하여 사용할 수 있음 app 레벨에서는 템플릿 파일 url을 변경하여 사용할 수 있음 [admin.py] from django.urls import path .. change_list_template = 'app이름/모델명_change_list.html' def get_urls(self) : urls= super().get_urls() my_urls = [ path('sync/', self.sync), ] return my_urls + urls def sync(self,request) : with connections['local'].cursor() as cursor : cursor.execute(updae_or_insert_delete_sql) curso..
2021.01.07