http與mysql

來源:互聯網
上載者:User

標籤:logout   mysql   認證   

先做好https認證

  205  hostnamectl set-hostname web1.example.com

  206  logout

  207  vim /etc/httpd/conf.d/ssl.conf

  208  cd /etc/httpd/conf.d/

  209  ls

  210  vim news.conf

  211  systemctl restart httpd.service

  212  ls

  213  cd /var/www/html/

  214  ls

  215  vim index.html

  216  vim index.php

  217  vim /etc/httpd/conf/httpd.conf

  218  systemctl restart httpd.service

  219  yum install php -y

  220  cd /etc/httpd/conf.d/

  221  systemctl restart httpd.service

  222  cd /var/www/html/

  223  ls

  224  mkdir cgia

  225  ls

  226  cd /cgi

  227  cd cgi/a

  228  ls

  229  vim index.cgi

  230  yum install httpd-manual

  231  vim index.cgi

  232  perl index.cgi

  233  vim index.cgi

  234  perl index.cgi

  235  vim index.cgi

  236  perl index.cgi

  237  vim index.cgi

  238  perl index.cgi

  239  vim index.cgi

  240  perl index.cgi

  241  vim index.cgi

  242  perl index.cgi

  243  chmod +x index.cgi

  244  perl index.cgi

  245  vim index.cgi

  246  perl index.cgi

  247  vim index.cgi

  248  perl index.cgi

  249  chmod +x index.cgi

  250  cd /etc/httpd/conf.d/

  251  ls

  252  vim default.conf

  253  systemctl restart httpd.service

  254  setenforce 0

  255  setenforce 1

  256  cd /etc/httpd/logs/

  257  ls

  258  semanage fcontext -l | grep httpd

  259  cd /var/www/

  260  ll

  261  ls -Zd cgi-bin/

  262  semanage fcontext -a -t httpd_sys_script_exec_t ‘/var/www/html/cgi(/.*)?‘

  263  restorecon -FvvR /var/www/html/cgi/

  264  getenforce

  265  vim /etc/mysql.cnf

  266  vim /etc/my.cnf

skip-networking=1  在全網中關閉連接埠

  267  yum install mariadb-server -y

  268  systemctl start mariadb

  269  netstat -antlpe | grep mysql

  270  systemctl restart mariadb

  271  mysql_secure_installation

  272  cd /var/www/html/

  273  ls

  274  lftp 172.25.254.250

  275  ls

  276  unzip Discuz_X3.2_SC_UTF8.zip   解析

  277  ls

  278  less readme/

 

 

 

       yum install httpd -y

vim ssl.conf

  209  systemctl start httpd

  210  cd /var/www/html/

  211  ls

  212  vim index.html

  214  systemctl status firewalld

  215  yum install mod_ssl

  216   ll /etc/pki/tls/certs/www.westos.com.crt

  217  ll /etc/pki/tls/private/www.westos.com.key

  218  cd /etc/httpd/conf.d/

  219  ls

  220  vim ssl.conf

/etc/pki/tls/certs/www.westos.com.crt

/etc/pki/tls/private/www.westos.com.key

  221  vim default.conf

  222  vim news.conf

  223  vim music.conf

  224  mkdir -p /var/www/virtual/music/html

  225  mkdir -p /var/www/virtual/news/html

  226  echo news.westos.com > /var/www/virtual/news/html/index.html

  227  echo music.westos.com > /var/www/virtual/music/html/index.html

  228  systemctl restart httpd.service

  229  vim news.conf

  230  systemctl restart httpd.service

  231  ls

  232  vim news.conf

  233  fg

  234  ll /var/www/virtual/news/html

  235  cd /var/www/virtual/news/html

  236  ls

  237  systemctl status firewalld

  238  cd /var/www/virtual/

  239  ll

  240  rm -rf music.westos.com/ news.westos.com/

  241  ls

  242  systemctl restart httpd.service

  243  cd /etc/httpd/conf.d

  244  ls

  245  vim default.conf

  246  vim news.conf

  247  cd /var/www/html/

  248  ls

  249  less readme/

  250  ll

  251  fg

  252  chmod 777 upload/data/ upload/config/ -R

  253  less readme/readme.txt

  254  getenforce

  255  setenforce 0

  256  chmod 777 upload/ -R

  257  yum install php-mysql.x86_64   下載兩者關聯的服務

  258  systemctl restart httpd.service

  259  mysql

  260  mysql -uroot -predhat

 


本文出自 “12106768” 部落格,請務必保留此出處http://12116768.blog.51cto.com/12106768/1882456

http與mysql

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.