wordpress的helloworld

2014重新建立wordpress

1.启动fastcgi
2.nginx关联fastcgi,运行php
3.nginx连接wordpress,php建立mysql的基础库,

centos6.5上安装

yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc mysql mysql-server mysql-devel php-devel php

启动fastcgi
[code="java"]
# cat fast.sh
#!/bin/sh
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u haoning -g haoning -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid
#
[/code]
建立用户
useradd haoning -G haoning
启动nginx和web的用户
nginx的配置文件
指定log目录和wordpress的目录为

ser haoning;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 80;
server_name 203.195.183.79;
access_log /home/haoning/log/access.log;
location / {
root /home/haoning/www;
index index.html index.htm index.php;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
set $path_info "/";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/haoning/www;
}
fastcgi_param SCRIPT_FILENAME /home/haoning/www/$real_script_name;
fastcgi_param script_name $real_script_name;
fastcgi_param path_info $path_info;
include /usr/local/nginx_wordpress/conf/fastcgi_params;
}
}


下载
cd /data/wordpress
wget http://cn.wordpress.org/wordpress-3.5.2-zh_CN.tar.gz
tar zxvf wordpress-3.5.2-zh_CN.tar.gz
ln -s /data/wordpress/wordpress /home/haoning/www


mysql:

mysql -uroot -h203.195.183.79 -p
create database haowordpress;
grant all on *.* to root@'%' identified by "mima" WITH GRANT OPTION;
flush privileges;

安装mysql

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/var/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all

make
make install

cp ./script/mysql_install_db .
./mysql_install_db --user=mysql
启动
/usr/local/mysql/bin/mysqld_safe --user=mysql &


配置文件
cp wp-config-sample.php wp-config.php
vim wp-config.php
修改数据库连接,尽量不要用localhost,用实际ip

启动fastcgi,启动nginx
访问
http://haoning.net/
Ubuntu+Nginx+php搭建一个属于自己的Wordpress站点 1、搭建环境 本文笔者使用的服务器是腾讯云服务器。 Linux:Linux 系统(本文为 Ubuntu18.04); Nginx:Web 服务器程序,用来解析 Web 程序; MySQL:一个数据库管理系统; PHP:Web 服务器生成网页的程序。 (1)安装配置Nginx sudo apt-get install nginx 启动 Nginx service nginx start 测试 Nginx 服务是否正常运行,在浏览器中,访问云主机公网 IP,查看 Nginx 服务是否正常运行。 阅读详情

相关推荐

Docker Desktop功能讲解

2013 年发布至今, Docker 一直广受瞩目,被认为可能会改变软件行业。 概述 许多人并不清楚 Docker 到底是什么,要解决什么问题,好处又在哪里?本文就来详细解释,帮助大家理解它,还带有简单易懂的实例,教你如何将它用于日常开发。 1. 环境配置的难题 软件开发最大的麻烦事之一,就是环境配置。用户计算机的环境都不相同,你怎么知道自家的软件,能在那些机器跑起来? 用户必须保证两件事:操作系统的设置,各种库和组件的安装。只有它们都正确,软件才能运行。举例来说,安装一个 Python 应用,计算

Adley志明.杨的博客 1万+

WORDPRESS插件开发学习(一)HELLO WORLD

WORDPRESS插件开发学习系列文章第一篇,在每篇文章的后面追加固定的字符“Hello World” 一.打开wordpress目录->wp-content->plugins 二.在plugins下新建一个目录1100w-hello-world 三.在1100w-hello-world下新建两个文件 1100w-hello-world.php 插件所必须文件,插件的入口文件。...

weixin_30377461的博客 166

利用ANSYS随机振动分析功能实现随机疲劳分析

本文介绍了ANSYS随机振动分析功能,以及利用该功能,按照Steinberg提出的基于高斯分布和Miner线性累计损伤定律的三区间法进行ANSYS随机疲劳计算的具体过程。在工程应用中,汽车、飞行器、船舶以及其它各种机械或零部件,大多是在随机载荷作用下工作,当它们承受的应力水平较高,工作达到一定时间后,经常会突然发生随机疲劳破坏,往往造成灾难性的后果。因此,预测结构或零部件的随机疲劳寿命是非常有必要的。在工程界,疲劳计算广泛采用名义应力法,即以S-N曲线为依据进行寿命估算的方法,可以直接得到总寿命。

qq_38220914的博客 7611

wordpress的helloworld (一)

xz9995XZZ 需要用wordpress3.5 3.8的样式不好使, cp wp-config-sample.php wp-config.php 修改数据库连接 创建数据库 [code="java"] create database haowordpress; grant all on *.* to root@'%' identified by "mima" WITH GRAN...

走在左边 400

POWER(十一)charge pump原理

电荷泵是一种基于电容充放电原理的DC-DC转换电路,通过开关控制实现电压转换,包括升压、降压和负压输出。其核心是利用电荷守恒原理,通过电容存储和转移电荷来改变输出电压。典型拓扑结构包括倍压电路和多阶升压电路,具有结构简单、体积小等优势。关键参数包括转换效率、输出电流能力和开关频率,适用于芯片供电、显示屏驱动等低功耗场景。LVDS部分补充说明了自举电路在驱动电路中的应用及其自同步特性。

zhlwsh的博客 2817

Tesseract in Java - Intellij IDEA对Tess4J的配置和使用

最近要弄OCR,搜到这个,官网全英文,很烦,看看有没有中文的博客介绍,擦,一个比一个奇葩,还是自己按照官方的来吧,外网慢的很,传到csdn给大家下载。中文训练库下载地址: http://download.youkuaiyun.com/detail/d_dmelon/9916532Tess4J3.4下载地址: http://download.youkuaiyun.com/detail/d_dmelon/9916519安装

Lewis的博客 1万+

HelloWorld,今天开始玩Wordpress了

首先得搭个php是吧,首先找到一下win7 64位y http://www.greenxf.com/soft/42300.html

大话程序员 1492

Qwen3-Omni-30B-A3B-Instruct微调指南:如何打造专属智能博物官(附数据集)

本文详细介绍了如何对Qwen3-Omni-30B-A3B-Instruct模型进行微调,以打造专业的智能博物官。指南涵盖了从理解模型架构优势、构建高质量文博数据集,到使用LLaMA-Factory进行实战微调、效果评估与部署优化的完整流程,并提供了关键的环境配置与性能优化建议,帮助开发者在垂直领域高效定制专属AI助手。

weixin_29096377的博客 1144

本地 wordpress安装+php运行环境

一、进入wordpress官网,根据需要下载相应的文件。https://cn.wordpress.org/txt-download/二、文件下载完成、解压、将主程序放至wordpress文件夹中。由于我这里用的是php环境,再加上含有多个系统,所以程序目录如下图所示。三、地址栏输入127.0.0.1/wordpress,即可看到如下界面四、因此在开始之前我们需要创建数据库和用户,打开phpstud...

还是用“Hello World!”吧 1万+

浅谈车载控制器产线EOL实现方式

1、控制器生产产线上电路检测设计 2、客户总装产线检测设计

u012406840的博客 2万+

基于STM32、HAL库的SC16IS752IPW总线转UART驱动程序设计

/ FIFO空间不足。// 设置LCR寄存器的DLAB位为1以访问DLL/DLH。// 设置LCR寄存器,先访问DLL/DLH。// 设置LCR寄存器(不包含DLAB位)

corlin6688的博客 817

【Wordpress】Wordpress的下载、配置与Helloworld

首先解释一下Wordpress是什么来的。Wordpress是一个人家用php写好的博客系统,也就是直接就是已经php网站的成品,然后你可以在上面直接对其源码、数据库进行修改,写出自己的网站。方便很多懒人程序猿,不过我自己更倾向于自己从0开始写。你也可以完全不改,直接拿去用,这直接就是一个博客系统。据说这个php开源项目在西方很火,因为其二次开发的很容易被Google搜索到。 不要把Wordpr

编程记录,亲测有效 1372

基于 InceptionNeXt 模块增强的 YOLOv8 模型:针对多尺度目标检测的改进与实现

modules.py。

know_F0727的博客 206

wordpress的helloworld (二)

解压zip包 unzip wordpress-3.3.1-zh_CN.zip 装完mysql 直接下一步下一步安装就好了 简单得掉渣了 装值钱先建好mysql 装完之后样式错乱 http://vus520.diandian.com/post/2010-06-21/15949664 http://www.qiuys.com/wordpress-faq-of-modify-pages...

走在左边 157

Opencv计算机视觉PPT-算法篇

01 02 03 04 05 06 07 08 09 010 011 012 013 014 015 016 017 018

Qt历险记,专注Qt技术,三年医疗设备研发经验,1年机器视觉研发经验,半年柔性传感研发经验。 204

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

Wordpress建站教程(一)网站PHP+MySQL环境搭建与wordpress安装

前言 本教程是WordPress零基础建站教程,前后共为10课,前五课是基础篇,主要分享WordPress的搭建和基本使用,适合零基础五任何开发经验又想拥有一个属于自己站点的朋友。后五篇分享WordPress的主题开发相关,帮助想独立开发专属主题的伙伴进行进阶。 后续文章可能更新至博客相关文章链接 WordPress建站教程十课 -(二)常用插件安装和使用 WordPress建站教程十课 -(三)主题使用和菜单配置 WordPress建站教程十课 -(四)文章发布和页面管理 WordPress建站教程十课

kelenwait的博客 1114

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

如何创建自己的WordPress短代码

WordPress doesn’t normally allow you to add PHP code to pages or posts. That’s for the best; you don’t want clients to discover the power of the unlink function! However, you can create custom functio...

culi3118的博客 772

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

基于Knative开发应用

title: (三)基于Knative开发应用 目录 安装 Istio 安装 Knative 玩转 helloworld-go WordPress 实战 创建 Kubernetes 集群 确保 Kubernetes 集群创建的时候已经选择了启用日志...

chikuai9995的博客 385

【2013-12-12】wordpress插件开发学习笔记:一个最简单的widget的实现

介绍如何在 WordPress 中开发一个最简单的 Widget 小工具插件。通过编写 PHP 插件文件、注册 sidebar widget 并在后台启用,最终将自定义 Widget 放入前台页面显示,适合 WordPress 插件开发入门学习。

cstriker1407的专栏 179

5万多个WordPress站点或被攻陷,背后疑似僵尸网络黑产团伙搞的鬼

近日,一篇来自v2ex的文章被多名博主转发,其称其下站点莫名多了不知名状态的helloworld文章,内容为“Welcome to wiki This is your f...

blackorbird的博客 415

php mysql搭建个人博客_Docker最全教程之使用PHP搭建个人博客站点(二十二)

目录官方镜像编写简单的Hello world!1. 编写Hello world!2. 编写Dockerfile3. 构建并运行4. 直接使用PHP Docker镜像运行PHP脚本构建自己的WordPress镜像用于搭建个人博客站点1. 准备MySQL数据库2. 跑起来修改PHP的文件上传大小限制1. 修改Dockerfile,构建自己的镜像2. 通过“-v”参数将容器内指定路径映射到主机目录的自定...

weixin_28844359的博客 375

WordPress初学者入门教程-清理预装的东西

在本课程的后面,我将提到经典的编辑器插件,你可以安装和使用,而不是Gutenberg,因为它与侧边栏工作得很好。它是一个很棒的插件,但只有当你的网站在任何方面都不是商业的时候,它才是免费的。当你安装WordPress时,它会安装一些默认项目,比如我们之前看到的主题和你在主页上看到的“HelloWorld”帖子。如果你点击了垃圾桶(1)链接,你会被带到垃圾桶,在那里你可以看到所有被发送到那里的帖子。当你想删除的时候,你知道怎么删除。在本章结束时,你会有一个新鲜的、干净的、空的网站来准备你的内容。.......

邱哥有言 575

wordpress插件_什么是WordPress MU插件?

wordpress插件WordPress core is full of features, however, sometimes it is not enough, and we need more. This can be achieved thanks to plugins, and sometimes themes can even add features. However, how c...

culh2177的博客 877

docker php composer 使用_Docker最全教程之使用PHP搭建个人博客站点(二十三)

目录官方镜像 编写简单的Hello world!1. 编写Hello world! 2. 编写Dockerfile 3. 构建并运行 4. 直接使用PHP Docker镜像运行PHP脚本 构建自己的WordPress镜像用于搭建个人博客站点 1. 准备MySQL数据库 2. 跑起来 修改PHP的文件上传大小限制 1. 修改Dockerfile,构建自己的镜像 2. 通过“-v”参数将容器内指定路径...

weixin_39940182的博客 147
上一篇: nginx的远程调用模块
下一篇: graphviz绘制nginx函数调用图
linux内核控
博客等级 码龄19年 41粉丝 638原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值