DAY6:河北科技大学课堂记录–web服务器apache,nginx,tomcat

1.备份文件时间命名
2.定时时间同步
*/10 * * * * /usr/sbin/ntpdate time1.aliyun.com
NFS服务器:
第一步:下载
yum install nfs-utils rpcbind -y
第二步:配置文件
vim /etc/exports
/ken *(rw)
第三步:创建共享目录并设置权限
mkdir /ken
chown -R nfsnobody: /ken
第四步:重启
systemctl restart rpcbind nfs
第五步:查看共享信息
showmount -e serverip
第六步:客户端进行挂载
mount -t nfs serverip:/ken /test
apache
网站根目录:/var/www/html
监听的端口:80
默认发布的文件:index.html/ index.php
服务器的返回状态值
200:ok,请求下载成功
304:not modified,标识一个缓存的资源是否发生过更改
403:forbidden,表示客户端没有权限访问所请求的资源
404:Not Found,表示客户端所请求的资源不存在
500:Internal Server Error,服务器内部错误
503:service unavailable,服务器暂时不可用
LAMP架构
LAMP=Linux Apache Mysql/MariaDB PHP/Perl/Python
静态请求:html结尾
动态请求:php结尾
apache的安装
[root@ken ~]# yum install httpd -y
apache配置文件
[root@ken ~]# vim /etc/httpd/conf/httpd.conf
Listen 80 #指定监听的端口
DocumentRoot “/var/www/html” #指定网站默认根目录
DirectoryIndex index.html #定义网站首页文件
apache使用
关掉防火墙!
第一步:下载apache
[root@ken ~]# yum install httpd -y
第二步:启动apache
[root@ken ~]# systemctl restart httpd
第三步:查看80端口是否启动
[root@ken ~]# ss -tnl
第四步:浏览器访问
ip
apache上线游戏
第一步:部署好apache
第二步:把网站数据传送到网站根目录/var/www/html
第三步:浏览器访问
解压“zip”结尾的包
yum install unzip -y
unzip game.zip
httpd错误页面定制
ErrorDocument 404 “the thing you search is not available”
ErrorDocument 404 http://www.kendd.cn/?p=56
LAMP架构–动态网站搭建
第一步:下载相关的软件包
[root@ken html]# yum install httpd mariadb-server php php-mysql -y
第二步:把软件包的发送到网站根目录下
略
第三步:复制wordpress文件到网站根目录
[root@ken html]# cp wordpress/* . -a
[root@ken html]# ls
game wp-app.php wp-login.php
game.zip wp-blog-header.php wp-mail.php
index.php wp-comments-post.php wp-pass.php
license.txt wp-config-sample.php wp-register.php
readme.html wp-content wp-settings.php
wordpress wp-cron.php wp-signup.php
wordpress-3.3.1-zh_CN.zip wp-includes wp-trackback.php
wp-activate.php wp-links-opml.php xmlrpc.php
wp-admin wp-load.php
[root@ken html]# pwd
/var/www/html
第四步:配置数据库文件
[root@ken html]# cp wp-config-sample.php wp-config.php
[root@ken html]# vim wp-config.php
define(‘DB_NAME’, ‘ken’);
/** MySQL 数据库用户名 */
define(‘DB_USER’, ‘ken’);
/** MySQL 数据库密码 */
define(‘DB_PASSWORD’, ‘123’);
第五步:配置数据库
[root@ken html]# systemctl restart mariadb
[root@ken html]# systemctl restart mariadb
[root@ken html]# mysql -uroot
MariaDB [(none)]> create database ken; #创建数据库ken
MariaDB [(none)]> grant all on *.* to ken@’localhost’ identified by ‘123’;
MariaDB [(none)]> flush privileges;
第七步:添加首页文件
[root@ken html]# vim /etc/httpd/conf/httpd.conf
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
第七步:重启相关服务
systemctl restart httpd
nginx讲解
nginx下载:需要依靠网络epel源
yum install nginx -y
查看nginx配置文件
[root@ken ~]# vim /etc/nginx/nginx.conf
动静分离配置:
location ~ php$ {
proxy_pass http://192.168.64.5;
}
location ~ html$ {
proxy_pass http://192.168.64.7;
}
3
hi 🙂 bross 🙂
hi
Chloe And Mark Hotel Hookup Free JULY 2020
kw:
The Best Free Kenosha Hookup Site JULY 2020
Free Hookup Apps For Sex JULY 2020
Free Bi Curious Hookup Sites JULY 2020
Best Free No Credit Card Hookup Sites JULY 2020
Free Dating Site Date Hookup JULY 2020
Hookup Hotshot Stream Free JULY 2020
I Am Looking For A Free 100 Percent Sex Hookup Site JULY 2020
kw:
100% Free Local Granny Sex Hookup Sites JULY 2020
Totally Free No Cost At All Married And Looking For A Affair Personal Ads Free To Hookup And Date JULY 2020
Fuckbook Premium Password JULY 2020
Free-Standing Ac And Heater Hookup JULY 2020
Top Free Hookup Sites Sex Only JULY 2020
Google Best Sex Hookup App Near Me For Free JULY 2020
Online Datings Sites JULY 2020
KW:
Dating App Where You Can See Who Likes You Free JULY 2020
Free Gaming Dating Website JULY 2020
Creating A Free Dating Website JULY 2020
Free Online Videos Man With Horse Size Cock Fucking Tight Pussy Until She Cums JULY 2020
A Free Dating Website For Nudists JULY 2020
Free Online Hd Hot Lesbian Fucking And Fingering Videos Lesbian JULY 2020
Free Online Dating Sites Bisexual JULY 2020
KW:
Free Hiv Positive Dating Website JULY 2020
Free Sex Dating Sim Android JULY 2020
Hosting With Free Dating Website JULY 2020
Free Dating Website On Pc JULY 2020
Best Europe Dating Apps Free And Website JULY 2020
Marine Dating Website Free JULY 2020
Free Online Girl On Girl Fucking Videos JULY 2020
KW:
Totally Free No Credit Card Info Needed Dating Sites 2019 JULY 2020
What Dating Sites Are Truly Free Dating JULY 2020
Free Dating Sites Where You Can Search By Distance JULY 2020
Free Dating Chat Website JULY 2020
Free Online Gay Dating Website JULY 2020
What Are The Free Dating Websites JULY 2020
10 Free Canada Dating Site JULY 2020
KW:
Free Website For Women Dating Black Women JULY 2020
How To Upgrade Free On Dating Sites JULY 2020
Online Dating JULY 2020
Free Milf Dating Website JULY 2020
Free Dating Website Bangalore JULY 2020
Foot Fetish Dating For Free JULY 2020
Best Dating Website Free Okcupid Plentyoffish Or Coffeemeetsbagel For Marriage JULY 2020
KW:
What Free Site For Mature Adult Dating JULY 2020
Free Dating Website Mauritius JULY 2020
Free Dating Line Phone Numbers JULY 2020
Fucking Online For Free JULY 2020
Best Free Mobile Dating Website JULY 2020
Google Find Me Free Dating Sites JULY 2020
What Kind Of Pictures Online Datings JULY 2020
KW:
A Free Online Dating Site JULY 2020
How To Find Out If Bf Is On Free Online Dating Sites JULY 2020
Free Dating Xname JULY 2020
Dating Website Free Messaging JULY 2020
Free Sex Friend Finder Dating Website JULY 2020
How To Create A Free Online Dating Website JULY 2020
Why Can’t I Send And Receive Messages On Free Dating Sites JULY 2020
KW:
How To Delete Your Christian Dating For Free Account JULY 2020
Free Bulgarian Dating Website JULY 2020
Dating Sites For Free Near Me JULY 2020
Free Online Dating Website Builder JULY 2020
Free Vegan Dating Website JULY 2020
100% Free Dating Site In Europe Aprove Country Without Payment JULY 2020
Free Dating Website For Younger Women Looking For Older Men JULY 2020
KW:
What Other Free Dating Sites Are There Other Then Pof And Mingle2 JULY 2020
Free Watch Online Fucking Movies Xviedos JULY 2020
Pof Free Dating Website JULY 2020
Is There Such A Thing As A Free Dating Website JULY 2020
Where Can I See Possible Dating Matches For Free JULY 2020
Free Dating Events London JULY 2020
Thank you very much for the invitation :). Best wishes.
PS: How are you? I am from France 🙂
Hi,I am happy to know u,France is a good country,hope i can have a chance to travel
GqLCGC rjiybqykifci, [url=http://hvaiahqatzzt.com/]hvaiahqatzzt[/url], [link=http://gnuxbngvqumw.com/]gnuxbngvqumw[/link], http://fdllbkzavanm.com/
ルイヴィトン 財布 コピー 代引き激安市場!
2020超人気 ルイヴィトン スーパーコピー代引き
ルイヴィトン 財布 コピー 代引き激安市場!
当店は信頼できるルイヴィトン コピー代引きの激安通販店です。
2020 高品質ルイヴィトン バッグ コピー、ルイヴィトン 財布 コピー 代引きなどの商品が低価格でお客様に提供します。
100%実物写真ですし、品質が完璧です。
ルイヴィトン コピー,ヴィトン コピー,
ルイヴィトン コピー代引き,
ルイヴィトン スーパーコピー,
ルイヴィトン 財布 コピー,
スーパーコピー代引き
2020年人気最新品、新素材入荷!
┣ブランド時計コピー
┣ルイヴィトン 財布コピー
┣グッチ 財布コピー
┣シャネル財布 コピー
┗エルメス財布 コピー
●在庫情報随時更新!
▲信用第一、良い品質、低価格は。
広大な客を歓迎して買います!
★送料無料(日本全国) ご注文を期待しています!
★ 税関の没収する商品は再度無料にして発送します