1. yum으로 mysql설치하기
* yum -y install mysql mysql-server
* chkconfig --levels 235 mysqld on //서버를 부팅할 때 mysql서비스가 자동으로 실행할 수 있도록 설정
* /etc/init.d/mysqld start //mysql을 실행 합니다.
* cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
* cat /etc/passwd //mysql 계정이 있는지 확인후 없다면 생성
* useradd -d /usr/local/mysql -s /sbin/nologin mysql //계정생성
* cd /usr/bin //참고로 rpm으로 설치했으때 mysql실행 명령어 폴더위치 입니다.
* chown -R root /usr/bin
* chown -R mysql /var/lib/mysql
* chgrp -R mysql /usr/bin/mysql
* 디비 생성하기
* /usr/bin/mysql_install_db --user=mysql
* /usr/bin/mysqladmin -uroot password 임시비번
* /usr/bin/mysql -u root -p mysql //임시패스워드로접속
* use mysql; //데이터베이스체인지
* update user set password=password('비번') where user='root';
* show databases; //디비생성확인
* flush privileges; //새로고침
* DB 사용자추가
* /usr/bin/mysql -u root -p
* use mysql;
* create database 디비명;
* grant all on 디비명. * TO 디비명@localhost identified by '비번' with grant option;
* flush privileges;
2. yum으로 httpd설치
* yum yum -y install httpd
* chkconfig --levels 2345 httpd on //부팅시 자동시작하게 설정
* vi /etc/httpd/conf/httpd.conf 파일 수정
* User nobody
* Group nobody
* ServerName 이이피
* DirectoryIndex index.html index.htm index.php
* AddType application/x-gzip .gz .tgz 이 줄을 찾아 아래에 2줄 추가.
* AddType application/x-httpd-php .php .php3 .php4 .html .htm .do
* AddType application/x-httpd-php-source .phps
* AllowOverride None => AllowOverride All
* AddHandler cgi-script .cgi 주석 삭제 => AddHandler cgi-script .cgi
* /etc/rc.d/init.d/httpd start 아파치 시작
3. yum으로 php설치
* php관련 라이브러리설치
* yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel fontconfig fontconfig-devel libxml2 libxml2-devel openssl openssl-devel gmp gmp-devel mhash mhash-devel libmcrypt libmcrypt-devel mysql-server pphp-mysql php-devel php-gd php-mbstring php-mhash
* yum yum -y install php
* vi /etc/httpd/conf.d/php.conf 파일 php설정
* AddHandler php5-script .php .htm .html //수정
* AddType application/x-httpd-php-source .phps .php .html .html //수정
이렇게해서 서버구축했고 홈페이지 잘돌아갑니다.
그런데 소스설치와 yum설치의 차이점을 알여주세요
댓글 1개
13년 전
소스 설치는 커스텀 설치라 필요한 부분만 설치하면 되므로 서버가 빠릿하게 반응하는데
Yum 이나 RPM 설치는 의존성을 보므로 의존성 관련 라이브러리도 죄다 설치해줘야 하죠~
당근 서버의 자원을 더 점유하게되고 추후 자유로운 커스터마이징시 좀 골룸할때가 있죠~
근데 전 둘다 해보니 속도나 자원먹는거나 별반 차이가 없어서 그냥 RPM 설치로 끝내고
맙니다. 물론 하드용량은 더 잡아먹지만....요즘 같은때에 크게 신경쓸 부분은 아니죠~
Yum 이나 RPM 설치는 의존성을 보므로 의존성 관련 라이브러리도 죄다 설치해줘야 하죠~
당근 서버의 자원을 더 점유하게되고 추후 자유로운 커스터마이징시 좀 골룸할때가 있죠~
근데 전 둘다 해보니 속도나 자원먹는거나 별반 차이가 없어서 그냥 RPM 설치로 끝내고
맙니다. 물론 하드용량은 더 잡아먹지만....요즘 같은때에 크게 신경쓸 부분은 아니죠~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 645 | ||
| 7629 |
|
10년 전 | 2371 | |
| 7628 | 10년 전 | 782 | ||
| 7627 |
|
10년 전 | 1014 | |
| 7626 |
|
10년 전 | 1775 | |
| 7625 | 10년 전 | 685 | ||
| 7624 | 10년 전 | 702 | ||
| 7623 |
|
10년 전 | 3057 | |
| 7622 | 10년 전 | 715 | ||
| 7621 |
leeleeleelee
|
10년 전 | 576 | |
| 7620 | 10년 전 | 535 | ||
| 7619 | 10년 전 | 474 | ||
| 7618 | 10년 전 | 1006 | ||
| 7617 | 10년 전 | 718 | ||
| 7616 | 10년 전 | 625 | ||
| 7615 | 10년 전 | 720 | ||
| 7614 | 10년 전 | 1245 | ||
| 7613 |
|
10년 전 | 2074 | |
| 7612 | 10년 전 | 1131 | ||
| 7611 | 10년 전 | 1395 | ||
| 7610 |
|
10년 전 | 1894 | |
| 7609 |
|
10년 전 | 1319 | |
| 7608 |
mwdkim
|
10년 전 | 1116 | |
| 7607 |
|
10년 전 | 1043 | |
| 7606 |
mwdkim
|
10년 전 | 3910 | |
| 7605 | 10년 전 | 682 | ||
| 7604 | 10년 전 | 1018 | ||
| 7603 | 10년 전 | 1639 | ||
| 7602 |
|
10년 전 | 1057 | |
| 7601 |
AniNest
|
10년 전 | 2775 | |
| 7600 |
port443
|
10년 전 | 1015 | |
| 7599 | 10년 전 | 939 | ||
| 7598 | 10년 전 | 1006 | ||
| 7597 | 10년 전 | 4564 | ||
| 7596 |
SeungYeon
|
10년 전 | 882 | |
| 7595 |
untitled
|
10년 전 | 2409 | |
| 7594 |
프로그래머7
|
10년 전 | 1716 | |
| 7593 |
untitled
|
10년 전 | 2352 | |
| 7592 |
untitled
|
10년 전 | 1927 | |
| 7591 |
untitled
|
10년 전 | 2669 | |
| 7590 |
아리마2001
|
10년 전 | 847 | |
| 7589 | 10년 전 | 1097 | ||
| 7588 |
|
10년 전 | 2907 | |
| 7587 | 10년 전 | 1298 | ||
| 7586 | 10년 전 | 660 | ||
| 7585 | 10년 전 | 1674 | ||
| 7584 | 10년 전 | 1403 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1155 | |
| 7582 |
|
10년 전 | 1094 | |
| 7581 | 10년 전 | 1313 | ||
| 7580 | 10년 전 | 977 | ||
| 7579 |
|
10년 전 | 599 | |
| 7578 | 10년 전 | 1418 | ||
| 7577 |
|
10년 전 | 1865 | |
| 7576 | 10년 전 | 1379 | ||
| 7575 |
멋진남자임
|
10년 전 | 1456 | |
| 7574 | 10년 전 | 2103 | ||
| 7573 | 10년 전 | 3242 | ||
| 7572 | 10년 전 | 755 | ||
| 7571 |
|
10년 전 | 776 | |
| 7570 |
|
10년 전 | 1302 | |
| 7569 | 10년 전 | 1540 | ||
| 7568 |
this1mg
|
10년 전 | 1038 | |
| 7567 |
|
10년 전 | 751 | |
| 7566 | 10년 전 | 913 | ||
| 7565 |
Angel하늘
|
10년 전 | 983 | |
| 7564 |
seoldi
|
10년 전 | 1222 | |
| 7563 |
|
10년 전 | 1362 | |
| 7562 |
멋진남자임
|
10년 전 | 2071 | |
| 7561 | 10년 전 | 697 | ||
| 7560 |
leeleeleelee
|
10년 전 | 889 | |
| 7559 | 10년 전 | 5028 | ||
| 7558 |
RinaP
|
10년 전 | 767 | |
| 7557 |
|
10년 전 | 1230 | |
| 7556 | 10년 전 | 1183 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1651 | |
| 7554 | 10년 전 | 1088 | ||
| 7553 |
senseme
|
10년 전 | 1329 | |
| 7552 |
ehdltdoit
|
10년 전 | 1426 | |
| 7551 |
|
10년 전 | 1813 | |
| 7550 |
leeleeleelee
|
10년 전 | 1576 | |
| 7549 | 10년 전 | 2413 | ||
| 7548 | 10년 전 | 1831 | ||
| 7547 |
멋진남자임
|
10년 전 | 1954 | |
| 7546 | 10년 전 | 995 | ||
| 7545 |
ILMare1003
|
10년 전 | 1273 | |
| 7544 |
|
10년 전 | 1238 | |
| 7543 | 10년 전 | 878 | ||
| 7542 | 10년 전 | 649 | ||
| 7541 |
울라라라우
|
10년 전 | 858 | |
| 7540 | 10년 전 | 1593 | ||
| 7539 | 10년 전 | 921 | ||
| 7538 |
|
10년 전 | 1824 | |
| 7537 | 10년 전 | 3601 | ||
| 7536 |
Gaumi
|
10년 전 | 1399 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1256 | |
| 7534 |
senseme
|
10년 전 | 1199 | |
| 7533 | 10년 전 | 1183 | ||
| 7532 | 10년 전 | 849 | ||
| 7531 | 10년 전 | 2038 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기