我需要在我的环境中将mongodb从3.2升级到3.6.对于这个过程,我首先按照建议从3.2迁移到3.4.成功迁移到3.4后,我开始迁移到3.6我无法启动mongod.当检查日志文件时,我发现错误如: 重要:升级问题:在尝试升级到3.6之前,数据文件需要完全升级到3.4版; 有关详细信息,请参阅http://dochub.mongodb.org/core/3.6-upgrade-fcv.
我的Mongod.conf
systemLog:destination:file logAppend:true path:/var/log/mongodb/mongod.log
storage:dbPath:/ var/lib/mongo journal:enabled:true
processManagement:fork:true#fork并在后台运行pidFilePath:/var/run/mongodb/mongod.pid #pidfile的位置
net:port:27017 bindIp:127.0.0.1
我正在构建一个角度应用程序,我需要在Excel文件中导出表数据.我有一个乘坐成功组件,其中有一个表显示通过角度服务获取的数据.现在我需要从浏览器下载excel文件中的这个表数据.
ridesuccess组件: -
export class RideSuccessComponent implements OnInit {
p = 1;
myForm: FormGroup;
rideSuccess: RideSuccess[];
rsuccess: RideSuccess = '';
constructor(private adminService: AdminService) {}
ngOnInit() {
this.rsuccess = '';
this.adminService.getRideSuccess()
.subscribe(
(rideSuccess: RideSuccess[]) => {
this.rideSuccess = rideSuccess;
}
);
Run Code Online (Sandbox Code Playgroud)
ridesuccess HTML: -
<table class="responstable" id="responsetable">
<tr>
<th data-th="Driver details"><span>Driver name</span></th>
<th>Rider Name</th>
<th>Pool ID</th>
<th>Amount</th>
<th>Source</th>
<th>Destination</th>
<th>Sum ID</th>
<th></th>
</tr>
<tr *ngFor="let ridesuccess of rideSuccess| paginate: { itemsPerPage: 5, currentPage: p }; let i = index" >
<td>{{ridesuccess.driverName}}</td> …Run Code Online (Sandbox Code Playgroud)