first do HTTPS authentication
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
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
cd/etc/httpd/conf.d/
221 Systemctl Restart Httpd.service
222 cd/var/www/html/
223 ls
224 mkdir CGI a
225 ls
226 cd/cgi
227 CD cgi/ a
228 ls
229 Vim index.cgi
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
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
cd/etc/httpd/conf.d/
251 ls
252 Vim default.conf
253 systemctl Restart Httpd.service
254 Setenforce 0
255 Setenforce 1
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/
Getenforce
265 VIM/ETC/MYSQL.CNF
266 VIM/ETC/MY.CNF
Skip-networking=1 shutting down ports in the entire network
267 Yum Install Mariadb-server-y
268 systemctl Start MARIADB
269 Netstat-antlpe | grep MySQL
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 Analysis
277 LS
278 less readme/
Yum Install Httpd-y
Vim ssl.conf
209 Systemctl Start httpd
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
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
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
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/
-LL
251 FG
252 chmod 777 upload/data/upload/config/-R
253 less Readme/readme.txt
254 Getenforce
255 Setenforce 0
chmod 777 upload/-R
257 yum Install php-mysql.x86_64 download the services associated with both
258 systemctl Restart Httpd.service
259 MySQL
260 Mysql-uroot-predhat
This article is from the "12106768" blog, please be sure to keep this source http://12116768.blog.51cto.com/12106768/1882456
HTTP and MySQL