티스토리 뷰
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
'Study' 카테고리의 다른 글
Lenovo(레노버) Thinkpad(씽크패드) Tenkey less(텐키리스) Break Key(브레이크 키) How to use(사용법) (0) | 2023.05.03 |
---|---|
Android(안드로이드) SQLite DB 확인 (0) | 2023.03.24 |
Android(안드로이드) SQLite (0) | 2023.03.22 |
Adobe(어도비) Flash(플래시) 단축키 (0) | 2023.02.28 |
Adobe(어도비) Flash(플래시) EscapeEUCJP (0) | 2023.02.28 |