By , 2016年9月26日 (月) 16:17:51

Setting Up LAMP (Linux, Apache, MariaDB and PHP) on Fedora 24 Server

bash for Windows

  • copy = ctrl + insert
  • paste = shift + insert
   10  dnf -y install httpd
   11  systemctl start httpd
   12  systemctl enable httpd
   13  firewall-cmd --add-service=http --permanent
   14  firewall-cmd --reload
   15  vi /var/www/html/index.html
   16  systemctl stop firewalld
   17  systemctl disable firewalld
   18  dnf -y upgrade
   19  dnf -y install ntp
   20  vi /etc/ntp.conf
   21  vi /etc/default/ntp
   22  systemctl restart ntp
   23  service ntp restart
   24  systemctl restart ntpd
   25  systemctl status ntpd
   27  systemctl enable ntpd
   28  dnf -y install php php-mbstring php-pear php-mysql
   29  dnf -y install mariadb
   30  dnf -y install gcc make
   31  dnf -y install ruby-devel
   32  dnf -y install python
   33  dnf -y install python-devel
   35  php -v
   36  vi /var/www/html/phpinfo.php
   37  systemctl restart httpd
   38  dnf update
   40  dnf install ruby-devel
   41  ruby -v
   45  python -V
   52  dnf install httpd
   53  systemctl status httpd.service
   54  systemctl status firewalld
   55  systemctl start firewalld
   56  systemctl status firewalld
   57  systemctl enable firewalld
   58  firewall-cmd --permanent --add-service=http
   60  firewall-cmd --permanent --add-service=https
   61  systemctl reload firewalld
   62  systemctl status firewalld.service

   64  dnf install mariadb-server
   66  systemctl enable mariadb.service
   68  systemctl start mariadb.service
   69  systemctl status mariadb.service
   70  mysql_secure_installation

Comments are closed

Panorama Theme by Themocracy