个人如何从零自建站?
发表于:2022-11-24 10:23:32浏览:30次TAG:
现在很多商家都想转做自建站了,但是是从跨境平台出来的,对建站一无所知,如果是自己从头搭建一个网站,要处理的事务有哪些?这些问题都是大家即将面对的。本文就大家的疑问作以分析。
1)购买域名
费用15~60元/年
到阿里云、腾讯云去申请域名;
2)域名的实名认证
免费,域名购买后,在域名管理处可以进行实名认证;
3)购置服务器
推荐华为云、阿里云、腾讯云等云服务器,注意看活动去淘,下面这个是阿里云的,96元1年,基本玩得起,但是正如前面所说的,准备合理的预算,浅尝辄止的话选最低的配置还是可以的;
费用100~4000元/年
4)域名备案
免费
*注意域名备案的步骤放在购置服务器后面了,在阿里云、腾讯云进行备案时,都要求填写备案码,这个备案码就来自上一步骤购置的云服务器,每个云服务器最多有5个备案码;
域名备案的流程偏差很大,基本上看你的服务器在哪里,在阿里云买的云服务器就在阿里云那里进行备案,在腾讯云买的服务器就在腾讯云那里进行备案;自己买服务器托管机房的,在机房托管的服务商那里进行备案;
5)网站部署
我们看到的个人博客,企业网站,营销网站等等,数量上来说90%的都是用php语言做的,这里边90%都是基于wordpress,joomla,drupal等开源软件搭建的,网站部署是一个很专业的话题,可以一键安装,但是有问题的时候,需要相当的专业知识。
6)网站的制作
网站部署后就可以通过域名访问网站了,但是网站的内容、样式完全不是我们想要的,这时可以通过网站的管理链接进入网站管理系统,删掉原来的内容,发布自己的内容,修改样式等(但是现在还有相当部分网站,是生成的完全的静态网站,没有管理后台一说的);
对于个人博客网站来说,讲的是内容为王,样式、排版方面真的不需要花太多功夫,找一个基本满意的模板用上就可以了,很多用户花相当多的精力在样式上面,内容方面却坚持不了多久。
对于很多小微企业的老板来说也是,我们碰到相当多的案例,就是在审美方面一定要做成跟哪个网站一样(尤其是电子元器件行业,有些风格老的不行),但是在产品内容方面十天半月都整理不出来;
网站是最基础的业务名片,网站可以搞的很酷炫,但是其实最重要的还是内容和后面的运营和推广。
7)网站的运营
网站的运营大致包括:
A.内容运营
或抄或原创,或转载,就这些了,这部分运营的核心是有节奏的更新,有节奏的更新是这个网站活着的重要凭证,百度谷歌都会很感兴趣;
B.互动内容管理
如果有投稿、留言、评论功能的,事情还真的少不了,因为现在很多自动化的工具会自动去评论、注册、留言,包括我们自己也会为客户做这样的工作,有这么一个经典案例(著名站长卢松松评论了1.5万个博客),好多情况这并不是你想要的,就需要进行互动内容的管理。
互动内容乱糟糟的话,会把真正对你的内容感兴趣的用户赶跑。
C.系统运营
网络世界里好事者数不胜数,癖好难以尽言,所以数据安全是重中之重,定期的数据备份。
对于自己建站的用户来说,做好这2件事情:
一)定期备份数据,有条件一点的设置好自动备份策略;
二)操作系统的账号密码,数据库的账号密码,网站管理员的账号密码尽可能复杂一点。
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-11-24 12:58:56 HTTP/1.1 GET : http://xn.iwdd.cn/home/article/detail/id/3104.html
- 运行时间 : 0.091705s [ 吞吐率:10.90req/s ] 内存消耗:2,043.11kb 文件加载:151
- 查询信息 : 30 queries
- 缓存信息 : 16 reads,0 writes
- 会话信息 : SESSION_ID=fa42613d23898a3223c525409afb5529
- CONNECT:[ UseTime:0.000563s ] mysql:host=127.0.0.1;port=3306;dbname=xn_iwdd_cn;charset=utf8mb4
- SHOW FULL COLUMNS FROM `cms_article` [ RunTime:0.000849s ]
- SELECT * FROM `cms_article` WHERE `id` = 3104 LIMIT 1 [ RunTime:0.000406s ]
- SHOW FULL COLUMNS FROM `cms_article_keywords` [ RunTime:0.000662s ]
- SELECT `i`.`aid`,`i`.`keywords_id`,`k`.`title` FROM `cms_article_keywords` `i` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`i`.`keywords_id` WHERE `i`.`aid` = '3104' AND `k`.`status` = '1' ORDER BY `i`.`create_time` ASC [ RunTime:0.000554s ]
- UPDATE `cms_article` SET `read` = `read` + 1 WHERE `id` = 3104 [ RunTime:0.004767s ]
- SHOW FULL COLUMNS FROM `cms_article_cate` [ RunTime:0.000731s ]
- SELECT * FROM `cms_article_cate` ORDER BY `sort` DESC [ RunTime:0.000352s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.002024s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 2 AND `status` = 1 LIMIT 1 [ RunTime:0.002028s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 3 AND `status` = 1 LIMIT 1 [ RunTime:0.002035s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 4 AND `status` = 1 LIMIT 1 [ RunTime:0.001764s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 5 AND `status` = 1 LIMIT 1 [ RunTime:0.001842s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 6 AND `status` = 1 LIMIT 1 [ RunTime:0.002046s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 7 AND `status` = 1 LIMIT 1 [ RunTime:0.001870s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 8 AND `status` = 1 LIMIT 1 [ RunTime:0.001761s ]
- SHOW FULL COLUMNS FROM `cms_keywords` [ RunTime:0.000604s ]
- SELECT * FROM `cms_keywords` WHERE `status` = 1 ORDER BY rand() , id desc LIMIT 20 [ RunTime:0.000404s ]
- SELECT `a`.`id`,`a`.`title`,`a`.`thumb`,`a`.`create_time`,`a`.`read`,`a`.`desc`,`f`.`filepath` FROM `cms_article` `a` LEFT JOIN `cms_file` `f` ON `a`.`thumb`=`f`.`id` WHERE `a`.`status` = '1' ORDER BY rand() , a.id desc LIMIT 10 [ RunTime:0.016643s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3506' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000599s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '2049' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000437s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '4136' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000435s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '837' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000372s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '1441' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000334s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3991' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000307s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3216' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000310s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '1117' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000332s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '4146' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000361s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '1466' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000362s ]
- SHOW FULL COLUMNS FROM `cms_user_log` [ RunTime:0.000825s ]
- INSERT INTO `cms_user_log` SET `uid` = 0 , `nickname` = '游客' , `type` = 'view' , `title` = '查看' , `content` = '游客在2024-11-24 12:58:56查看了个人如何从零自建站?文章详情' , `param_id` = 3104 , `param` = '[]' , `module` = 'home' , `controller` = 'article' , `function` = 'detail' , `ip` = '13.59.2.242' , `create_time` = 1732424336 [ RunTime:0.004761s ]
0.099557s