php 실행 확장자 조작 하기
ubuntu html, php 확장자가 사용 가능하도록 변경 sudo vi /etc/apache2/mods-enabled/mime.conf 파일에서 AddType application/x-bzip2 .bz2 밑에 AddType application/x-httpd-php .php .jsp .html .htm 등록 아파치 재시작 참조 […]
ubuntu html, php 확장자가 사용 가능하도록 변경 sudo vi /etc/apache2/mods-enabled/mime.conf 파일에서 AddType application/x-bzip2 .bz2 밑에 AddType application/x-httpd-php .php .jsp .html .htm 등록 아파치 재시작 참조 […]
notepad++ 바꾸기 기능중 정규식을 이용하면 같은 디렉토리에 있는 파일내용 상단에 문자을 쉽게 추가 할수 있습니다. nodepad ++ 다운받기 설명
1 2 3 |
정규식 : \A^.*? |
1 2 3 |
<!-- 위에 문자 추가해 보기 --> |
변경 후
1 2 3 4 |
<!-- 문자 추가2 --> <!-- 문자 추가해 보기 --> |
apache 가 정상적으로 응답하지 않는 현상도 발생
1 2 3 4 5 6 7 |
::1 - - [26/Mar/2020:16:10:30 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:31 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:32 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:33 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" ::1 - - [26/Mar/2020:16:10:35 +0900] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g (internal dummy connection)" |
해결책 : /etc/apache2/apache2.conf
1 2 3 4 5 |
SetEnvIf Remote_Addr "::1" loopback SetEnvIf Remote_Addr "127\.0\.0\.1" loopback CustomLog ${APACHE_LOG_DIR}/access_log combined env=!loopback |
참조 : https://cwiki.apache.org/confluence/display/HTTPD/InternalDummyConnection https://allthatlinux.com/dokuwiki/doku.php?id=access_log%EC%97%90_options_http_1.0_%EA%B0%80_%EA%B8%B0%EB%A1%9D%EB%90%98%EB%8A%94_%EC%9D%B4%EC%9C%A0
Remark : Adobe Acrobat/Reader에 문제가 있습니다. 실행 중이라면 종료하고 다시 시도하십시오.(103:103) This error can be fixed by disabling the Adobe Reader’s “Enable Protected Mode at […]
1 2 3 4 5 |
sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.3 |
php7.3 will be updated automatically when updates become available. Alternatively you can build php7.3 from source in Ubuntu 18.04, but it will not be […]
1 2 3 |
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/86d06dec5cec67943ee6e7c12ecb473588920e74747b6126d12fbf679ccfb18a Hash Sum mismatch |
1 2 3 4 |
sudo rm -rf /var/lib/apt/lists/* sudo apt-get update |
참조 : https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error
CenOS에 MariaDB 설치 후 remote 열기
1 2 3 4 5 |
cd /etc/my.cnf.d # ls client.cnf enable_encryption.preset mysql-clients.cnf server.cnf tokudb.cnf |
1 2 3 4 5 6 |
#sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf bind-address=0.0.0.0 |
3306 포트 열기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
[root@localhost my.cnf.d]# cat /etc/sysconfig/iptables # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT |
ubuntu ufw root 계정 리모트(%) 가능 으로 변경 (10.5 이하에서만 가능) MariaDB 10.5 […]
1 2 3 |
yum install psmisc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
[root@localhost CoreTest]# yum install psmisc Loaded plugins: fastestmirror Determining fastest mirrors epel/x86_64/metalink | 5.6 kB * base: data.aonenetworks.kr * epel: mirrors.yun-idc.com * extras: data.aonenetworks.kr * updates: ftp-srv2.kddilabs.jp * webtatic: us-east.repo.webtatic.com base | 3.6 kB epel | 5.3 kB extras | 2.9 kB mariadb | 2.9 kB packages-microsoft-com-prod | 2.9 kB updates | 2.9 kB webtatic | 3.6 kB (1/7): extras/7/x86_64/primary_db | 159 kB (2/7): epel/x86_64/updateinfo | 1.0 MB epel/x86_64/primary_db FAILED https://mirrors.thzhost.com/epel/7/x86_64/repodata/1037dd5827f24f5fd5e12fb11504be3d944cf70be264e6f882c2c-primary.sqlite.bz2: [Errno 14] HT04 - Not Found Trying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https:os.org/. (3/7): mariadb/primary_db | 49 kB (4/7): epel/x86_64/primary_db | 6.9 MB (5/7): packages-microsoft-com-prod/primary_db | 10 MB (6/7): webtatic/x86_64/primary_db | 248 kB (7/7): updates/7/x86_64/primary_db | 6.7 MB Resolving Dependencies --> Running transaction check ---> Package psmisc.x86_64 0:22.20-16.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================== Package Arch Version Repository ===================================================================== Installing: psmisc x86_64 22.20-16.el7 base Transaction Summary ===================================================================== Install 1 Package Total download size: 141 k Installed size: 475 k Is this ok [y/d/N]: y Downloading packages: psmisc-22.20-16.el7.x86_64.rpm | 141 kB Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : psmisc-22.20-16.el7.x86_64 Verifying : psmisc-22.20-16.el7.x86_64 Installed: psmisc.x86_64 0:22.20-16.el7 Complete! |
SVG란? 스케일러블 벡터 그래픽스(Scalable Vector Graphics, SVG)는 2차원 벡터 그래픽을 표현하기 위한 XML 기반의 파일 형식으로, 1999년 W3C(World Wide Web Consortium)의 주도하에 개발된 오픈 표준의 […]
Code Signing Certificates Indicate trust and authentication by digitally signing your software, code, applications and boost the confidence of users that the software they are […]
Copyright © 2024 | WordPress Theme by MH Themes