Chinaunix首页 | 论坛 | 博客
  • 博客访问: 421690
  • 博文数量: 136
  • 博客积分: 5351
  • 博客等级: 少校
  • 技术积分: 1446
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-29 15:46
文章存档

2013年(2)

2012年(18)

2011年(116)

分类: LINUX

2011-06-29 15:30:51

1.   //介绍世界web服务器排名

Market Share for Top Servers Across All Domains
August 1995 - June 2011

Graph of market share for top servers across all domains, August 1995 - June 2011


2.IIS---Internet Information Service     LAMP--Linux  Apache  Mysql  Php

其中  MYSQL  Mysql+sql sever   ,Oracle   ,   PostgreSQL  数据库方面的

3.包的安装      #  yum     groupinstall  "web servcer"   -y      //yum install  httpd  -y    主包

                       # yum   install    mysql-*     -y 

                       #  yum  install      php-*       -y

4. 配置文件   #cd   /etc/httpd

total 8
drwxr-xr-x. 2 root root 4096 Jun 14 00:03 conf
drwxr-xr-x. 2 root root 4096 Jun  9 19:38 conf.d
lrwxrwxrwx. 1 root root   19 Jun  7 00:51 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root   27 Jun  7 00:51 modules -> ../../usr/lib/httpd/modules
lrwxrwxrwx. 1 root root   19 Jun  7 00:51 run -> ../../var/run/httpd


5.# cd    conf   ;   ll

total 52
-rw-r--r--. 1 root root 34418 Jun 14 00:03 httpd.conf
-rw-r--r--. 1 root root 13139 Aug 14  2010 magic

6. #  vim     httpd.conf

ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#ServerName //修改该行即可
   ServerName

    AllowOverride None

#
# Controls who can get stuff from this server.     //控制访问该服务器
#
    Order allow,deny
    Allow from all

    Deny   from    193.168.1.0/24 


# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
     //#    去掉
    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
     DocumentRoot   /var/www/html/ 

ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common


7.   #service    httpd   start     //重启服务 


8. #    cd  /var/www/  ;   ll

total 24
drwxr-xr-x.  2 root      root 4096 Aug 14  2010 cgi-bin
drwxr-xr-x.  3 root      root 4096 Jun  7 00:51 error
drwxr-xr-x.  2 root      root 4096 Jun 11 12:13 html
drwxr-xr-x.  3 root      root 4096 Jun  9 19:38 icons
drwxr-xr-x. 14 root      root 4096 Jun  9 19:33 manual
drwxr-xr-x.  2 webalizer root 4096 Jun 29 13:12 usage

8. #  cd    html 

9 #   vim   index.html       //以  .html   结尾的文件编辑 

10.    到目前为止 可以 #elinks   或在firefox  里面

   可以说就是 httpd   的简单配置.

11.结合mysql   wordpress  个人博客

  wordpress   可以在官网下载

12.关于mysql此处用到的命令

#service    mysqld   start

#mysqlsdmin    -u  root  --password   "mysql"(个人创建的密码,明文的,引号命令行不输入的

      除非你用作密码,这一点是不安全的用history可以查到,因而要改历史命令记录数)

#mysql   -u   root   -p

mysql> show   databases;    or  show  databases \g  //进入mysql> 模式  有提示 每行加    ;  or  \g

mysql> show   databases  \g
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql> DROP    database   test;

mysql> DROP    database   mysql ;

只保留information_schema    这一项

mysql> create   database  wordpress \g

mysql>  quit

13.关于wordpress 设置

#firefox   192.168.1.106     进入wordpress 的图形设置界面

点击go     User Name   root    // Be   careful here 

点击Submit  BUTTON  之后   进入新页面

选择方框中全部内容   复制

#cd   /var/www/html

#vim     wp-config.php      //粘贴到本文件中

再前进继续设置界面.......

14.终于完了,测试看看


阅读(1725) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~