日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

架设mediawiki服务器续--安装VisualEditor编辑器

發(fā)布時(shí)間:2024/4/13 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 架设mediawiki服务器续--安装VisualEditor编辑器 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>

1、安裝nodejs

wget https://nodejs.org/dist/v6.11.1/node-v6.11.1.tar.gz tar xvf node-v6.11.1.tar.gz yum install gcc-c++ -y cd node-v6.11.1 ./configure make make install [root@localhost node-v6.11.1]# node -v v6.11.1 [root@localhost node-v6.11.1]# npm -v 3.10.10 yum install -y policycoreutils-python npm install -g cnpm --registry=https://registry.npm.taobao.org

2、安裝parsoid

cd /opt git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid cd parsoid/ cnpm install

2.1、安裝parsoid服務(wù)

touch /opt/parsoid/parsoid.envcat /opt/parsoid/parsoid.env PORT=8000 NODE_PATH=/opt/parsoid/node_modulestouch /usr/lib/systemd/system/parsoid.service cat /usr/lib/systemd/system/parsoid.service [Unit] Description=Mediawiki Parsoid web service on node.js Documentation=http://www.mediawiki.org/wiki/Parsoid Wants=local-fs.target network.target After=local-fs.target network.target[Install] WantedBy=multi-user.target[Service] Type=simple User=nobody Group=nobody WorkingDirectory=/opt/parsoid EnvironmentFile=-/opt/parsoid/parsoid.env ExecStart=/usr/local/bin/node /opt/parsoid/bin/server.js KillMode=process Restart=on-success PrivateTmp=true StandardOutput=syslogsystemctl start parsoid.service systemctl status parsoid.service ● parsoid.service - Mediawiki Parsoid web service on node.jsLoaded: loaded (/usr/lib/systemd/system/parsoid.service; disabled; vendor preset: disabled)Active: active (running) since Mon 2017-08-14 05:23:45 EDT; 6s agoDocs: http://www.mediawiki.org/wiki/ParsoidMain PID: 69022 (node)CGroup: /system.slice/parsoid.service├─69022 /usr/local/bin/node /opt/parsoid/bin/server.js└─69032 /usr/local/bin/node /opt/parsoid/node_modules/_service-runner@2.3.0@service-runner/service-runner.jssystemctl enable parsoid.service

3、安裝VisualEditor

cd extensions git clone -b REL1_29 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git cd VisualEditor git submodule update --init

4、修改LocalSettings.php

wfLoadExtension( 'VisualEditor' );// Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1;// Optional: Set VisualEditor as the default for anonymous users // otherwise they will have to switch to VE // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";// Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable';// OPTIONAL: Enable VisualEditor's experimental code features #$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

5、效果

編輯器使用參考連接:https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/zh

轉(zhuǎn)載于:https://my.oschina.net/Suregogo/blog/1510571

總結(jié)

以上是生活随笔為你收集整理的架设mediawiki服务器续--安装VisualEditor编辑器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。