HTTP APM패키지 + 한방에 빠른 설치
Автор: 어느 아마추어
Загружено: 2022-02-13
Просмотров: 104
Описание:
HTTP APM패키지_한방에 빠른 설치
패키지설치
http://autoset.net
https://bitnami.com/stack/wamp/installer
wget https://dlcdn.apache.org//apr/apr-1.7...
wget https://dlcdn.apache.org//apr/apr-uti...
wget https://dlcdn.apache.org//httpd/httpd...
tar -xvf apr-1.7.0.tar.gz
tar -xvf apr-util-1.6.1.tar.gz
tar -xvf httpd-2.4.52.tar.gz
rm -rf apr-1.7.0.tar.gz
rm -rf apr-util-1.6.1.tar.gz
rm -rf httpd-2.4.52.tar.gz
yum install gcc gcc-c++
yum install expat expat-devel
yum install pcre pcre-devel
==apr==
./configure --prefix=/usr/local/apr
make && make install
==apr-util==
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
==httpd==
./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=all --enable-rewrite --enable-expires --enable-modules=ssl --enable-ssl --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/apache/pcre
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-module-so --enable-so --enable-mods-shared=all --with-mpm=prefork
make && make install
====PHP====
wget https://www.php.net/distributions/php...
tar -xvf php-8.1.2.tar.gz
rm php-8.1.2.tar.gz -y
cd php-8.1.2/
yum install perl perl-devel
yum install libxml2 libxml2-devel
yum install curl curl-devel
yum install gd gd-devel
yum install sqlite sqlite-devel
yum install openssl openssl-devel
yum install php-gd
//.apxs perl 실행경로 재설정
vi /usr/local/apache/bin/apxs
!/replace/with/path/to/perl/interpreter -w (초기 설정 삭제)
!/usr/bin/perl -w (perl 실행 경로로 수정)
==php컴파일==
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-curl --enable-calender --enable-shmop --enable-ftp --enable-sockets --disable-cgi --with-gd --with-png-dir=/usr/lib --with-zlib-dir --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/local/freetype --with-iconv --with-onig=/usr --enable-mbstring
make && make install
wget https://github.com/kkos/oniguruma/arc... -O oniguruma-6.9.4.tar.gz
tar -xvf oniguruma-6.9.4.tar.gz
rm oniguruma-6.9.4.tar.gz
cd oniguruma-6.9.4
yum install autoconf automake libtool
./autogen.sh && ./configure --prefix=/usr
make && make install
--------웹페이지 오류시----------
libtool --finish /usr/lib64
//libtool libtoolT 파일복사
cp libtool libtoolT
//vi php.ini
short_open_tag=On 으로 바꿔줌
cd /usr/local/apache/conf
cp /home/source/php-8.1.2/php.ini-development ./php.ini
vi httpd.conf
AddType application/x-httpd-php .php .htm .html .inc
AddType application/x-httpd-php-source .phps
cd /usr/local/apache/bin
./apachectl restart
구동확인
ps -ef | grep httpd
netstat -lntp
cd /usr/local/apache/htdocs/
vi phpinfo.php
firewall-cmd --zone=public --permanent --add-port=80/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --add-port=3306/tcp
firewall-cmd --reload
-maria DB install-
1.yum install mariadb-server -y
2.systemctl start mariadb
3.systemctl enable mariadb
4.mysql_secure_installation
DB접속 root 비번 재설정 Enter
y - y -- n -- y -- y
5.systemctl status mariadb
select version();
mysql -u root -p
test default CHARACTER SET UTF8;
show databases;
//DB 접속 후 현재 설정 확인
select Host,User,plugin,authentication_string FROM mysql.user;
//모든 IP 허용
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY '패스워드';
특정 IP 허용
GRANT ALL PRIVILEGES ON . TO 'root'@'아이피주소.%' IDENTIFIED BY '패스워드';
// 커밋적용
FLUSH PRIVILEGES;
//DB시작
ss -ae | grep mysql
systemctl status mariadb
서비스추가
firewall-cmd --permanent --add-serivce=ssh
firewall-cmd --permanent --add-service=http
서비스 삭제
firewall-cmd --permanent --remove-service=mysql
외부 아이피 접근 추가 - MySQL 에 특정 아이피만 접속 허가 할때:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.1.100" port protocol="tcp" port="3306" accept'
1. my.cnf 에서 bind-address 또는 bind_address = 0.0.0.0 으로 변경
2. 유저만들기
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';GRANT ALL PRIVILEGES ON . TO 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION;
특정 DB만
GRANT type_of_permission ON database_name.table_name TO ‘username’@'localhost’;
FLUSH PRIVILEGES;
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: