티스토리 뷰

반응형

2021년 2월 기준.

apt update

lsb_release -a

free -m

lsblk

rpm --query centos-release

cat /etc/redhat-release

cat /proc/version

rpm -qa libjpeg* libpng* freetype* gd-* gcc gcc-c++ gdbm-devel libtermcap-devel

yum install libjpeg* libpng* freetype* gd-* gcc gcc-c++ gdbm-devel libtermcap-devel

yum install httpd

yum install mariadb mariadb-server

yum install php php-mysql php-mbstring php-pdo php-g

rpm -qa httpd mariadb php

systemctl start httpd

systemctl enable httpd.service

systemctl status httpd

systemctl start mariadb

systemctl enable mariadb.service

systemctl status mariadb

firewall-cmd --zone=public --add-port=80/tcp --permanent

firewall-cmd --permanent --zone=public --add-port=80/tcp

firewall-cmd --reload

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

iptables -vnL

/etc/sysconfig/selinux

enforcing --> disabled

vi /etc/sysconfig/selinux

vi /etc/httpd/conf/httpd.conf

echo "지금은 웹서버 테스트 중입니다" > /var/www/html/public/webtest.php

cd /var/www/html

mkdir public

echo "지금은 웹서버 테스트 중입니다" > /var/www/html/public/webtest.php

systemctl restart httpd

cd /var/log/mariadb/

ls -l

cat mariadb.log | grep "temporary password"

vi mariadb.log

cat /var/log/mysqld.log | grep "temporary password"

vi mariadb.log

vi /etc/httpd/conf/httpd.conf

mysql_secure_installation

cd /var/www/html

unzip Source.zip

yum install zip unzip

unzip Source.zip

php artisan cache:clear

php artisan clear:cache

php -v

cd ~

curl 'https://setup.ius.io/' -o setup-ius.sh

sudo bash setup-ius.sh

sudo yum remove php-cli mod_php php-common

sudo yum install mod_php70u php70u-cli php70u-mysqlnd

sudo apachectl restart

php -v

sudo yum install mod_php70u php70u-cli php70u-mysqlnd

sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

sudo yum -y install epel-release yum-utils

sudo yum-config-manager --disable remi-php54

sudo yum-config-manager --enable remi-php73

sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

sudo yum install php-mysql

sudo yum install php-mysqlnd

php -v

cd /var/www/html

php artisan cache:clear

vi /etc/httpd/

cd /etc/httpd/

ls -l

cd conf

ls -l

vi httpd.conf

service httpd restart

cd /var/www/html

ls -l

chmod +755 storage/

chmod -R +755 storage/

chmod -R +777 storage/

datetime

timedatectl

cd /etc/httpd/conf

ls -l

vi httpd.conf

vi /etc/php.ini

sudo service httpd restart

cd /var/www/html

cd public/

vi webtest.php

history

// CentOS 7

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/12   »
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
글 보관함