我已按照https://github.com/Kurento/bugtracker/issues/140的安装指南进行操作
,安装成功,但当我想通过以下命令启动kurento媒体服务器时:
sudo service kurento-media-server-6.0 start
我收到以下错误:
无法启动kurento-media-sever-6.0.sevice:找不到单位kurento-media-server-6.0.service。
答案 0 :(得分:0)
我想建议你生成* .deb包,然后使用cd kurento-media-server/
# build a .deb package
`debuild -uc -us`
# install it using dpkg
sudo dpkg -i ../kurento-media-server-6.0_6.6.1_amd64.deb
安装它:
sudo make install
另外,请查看此答案https://stackoverflow.com/a/33410211/3380173,了解有关如何执行此操作的更多详细信息。
至于您的问题,似乎在执行upstart
脚本后,没有生成systemd
/ sudo service kurento-media-server-6.0 start
个配置,因此您无法使用/usr/local/bin/kurento-media-server
启动它。您可能会发现它生活在upstart
并手动启动,但我认为这不是一个好的解决方案。在这种情况下,您必须手动编写自己的systemd
/ var jsonString = '{"data":{"2G":[{"amount":"9","detail":"35 MB 2G Data , Post 35 MB you will be charged at 4p\/10kb","validity":"1 Day","talktime":"0"},{"amount":"16","detail":"90 MB 2G Data, Post 90 MB you will be charged at 4p\/10kb","validity":"2 Days","talktime":"0"},{"amount":"28","detail":"160 MB 2G Data, Post 160 MB you will be charged at 4p\/10kb","validity":"4 Days","talktime":"0"},{"amount":"54","detail":"300 MB 2G Data, Post 300 MB you will be charged at 4p\/10kb","validity":"7 Days","talktime":"0"},{"amount":"78","detail":"310 MB 2G Data , Post 310 MB you will be charged at 4p\/10kb","validity":"10 Days","talktime":"0"},{"amount":"95","detail":"550 MB 2G Data, Post 550 MB you will be charged at 4p\/10kb","validity":"14 Days","talktime":"0"},{"amount":"125","detail":"700 MB 2G Data, Post 700 MB you will be charged at 4p\/10kb","validity":"18 Days","talktime":"0"},{"amount":"155","detail":"850 MB 2G Data, Post 850 MB you will be charged at 4p\/10kb","validity":"21 Days","talktime":"0"},{"amount":"179","detail":"1 GB 2G Data, Post 1 GB you will be charged at 4p\/10kb","validity":"28 Days","talktime":"0"},{"amount":"198","detail":"Hero Recharge : Get 1.25 GB 2G Data assured benefit (upto 3 GB 2G Data with hero recharge)","validity":"28 Days","talktime":"0"},{"amount":"199","detail":"2 GB Unlimted 2G Data, Post 2 GB your speed will be reduced up to 40kbps","validity":"28 Days","talktime":"0"},{"amount":"249","detail":"3 GB Unlimted 2G Data, Post 3 GB your speed will be reduced up to 40kbps","validity":"28 Days","talktime":"0"},{"amount":"205","detail":"1 GB 2G Data Day + Extra 1 GB 2G Night Data (12AM to 6AM)","validity":"28 Days","talktime":"0"},{"amount":"305","detail":"2 GB 2G Data Day + Extra 2 GB 2G Night Data (12AM to 6AM)","validity":"28 Days","talktime":"0"},{"amount":"395","detail":"3 GB 2G Data Day + Extra 3 GB 2G Night Data (12AM to 6AM)","validity":"28 Days","talktime":"0"},{"amount":"57","detail":"190 MB 2G Data, Post 190 MB you will be charged at 4p\/10kb","validity":"28 Days","talktime":"0"},{"amount":"98","detail":"300 MB 2G Data, Post 300 MB you will be charged at 4p\/10kb","validity":"28 Days","talktime":"0"}]},"resCode":"200","resText":"SUCCESS"}';
var temp_data = JSON.parse(jsonString);
var array_of_arrays = [];
$.each(temp_data.data["2G"], function(i,dataElem) {
array_of_arrays.push([dataElem.amount,dataElem.detail,dataElem.validity,dataElem.talktime]);
});
console.log(array_of_arrays);
$('#example').DataTable( {
data: array_of_arrays,
columns: [
{ title: "Name" },
{ title: "Position" },
{ title: "Office" },
{ title: "Extn." }
]
} );
脚本。