標籤: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