操屁眼的视频在线免费看,日本在线综合一区二区,久久在线观看免费视频,欧美日韩精品久久综

新聞資訊

    kvm 虛擬化學(xué)習(xí)&運(yùn)維技巧(一)

    一:VNC訪問(wèn)亂碼

    cp /etc/locale.conf /etc/locale.conf.bak


    vim /etc/locale.conf

    #LANG="zh_CN.UTF-8"

    LANGUAGE="zh_CN.UTF-8:zh_CN.GB2312:zh_CN"

    SUPPORTED="zh_CN.UTF-8:zh_CN:en_US.UTF-8:en_US:en"

    SYSFONT="lat0-sun16"


    vi /etc/sysconfig/i18n

    LANG="en_US.UTF-8" #默認(rèn)語(yǔ)言改為英語(yǔ)


    reboot #重啟服務(wù)器


    二:創(chuàng)建虛擬機(jī)

    vncviewer `virsh vncdisplay 41`

    dd if=/dev/zero of=testtest.img bs=1G count=0 seek=20


    每臺(tái)虛擬機(jī)VNC端口必須不一致

    LINUX 操作系統(tǒng):

    qemu-img create -f qcow2 test02.img 7G

    virt-install --name=centos7 --os-variant=rhel6 --ram 512 --vcpus=1 --disk path=/vmdata/images/centos7.img,format=qcow2,size=5,bus=virtio --accelerate --cdrom /vmdata/iso/CentOS-7.0-1406-x86_64-DVD.iso --vnc --vncport=5910 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole


    virsh edit lable

    查看VNC 端口,通過(guò)VNC登陸虛擬機(jī),再配置IP



    windows操作系統(tǒng):

    virt-install --name=w2008 --ram 512 --vcpus=1 --disk path=/vmdata/images/w2008.img,size=8 --accelerate --cdrom /vmdata/iso/w2008.iso --vnc --vncport=5911 --vnclisten=0.0.0.0 --network bridge=br0 --force --autostart


    三:克隆虛擬機(jī)

    virt-clone -o centos7 -n centos7_sub -f /vmdata/images/centos7_sub.img

    說(shuō)明:停機(jī)狀態(tài)下,以centos7 為模板,創(chuàng)建新的centos7_sub 虛擬機(jī),引用新文件為centos7_sub.img

    變化項(xiàng)有:

    <name> <uuid> <source file  <mac address>

    通過(guò)配置文件復(fù)制虛擬機(jī)

    1.復(fù)制配置文件:virsh dumpxml centos7 > /etc/libvirt/qemu/centos7_sub.xml

    2.復(fù)制鏡像文件:cp centos7.img centos7_sub.img &

    3.修改name,uuid,disk位置,vnc端口

    4.重新定義配置文件

    virsh define /etc/libvirt/qemu/centos7_sub.xml


    四:跨宿主機(jī)復(fù)制虛擬機(jī)實(shí)例

    scp -r /data/ubuntu root@192.168.10.17:/data

    scp /etc/libvirt/qemu/ubuntu.xml root@192.168.10.17:/data

    cp /data/ubuntu.xml /etc/libvirt/qemu/

    1.定義文件

    virsh define /etc/libvirt/qemu/ubuntu.xml

    2.確認(rèn)文件Img 路徑有效

    virsh edit ubuntu

    /data/ubuntu/ubuntu.img

    3.啟動(dòng)虛擬機(jī)

    virsh start ubuntu

    4.vnc 訪問(wèn)

    vncviewer `virsh vncdisplay id`


    五:給虛擬機(jī)增加內(nèi)存

    1.關(guān)閉虛擬機(jī)

    virsh shutdown tmpl50

    2.查看配置

    [root@localhost tmpl50]# virsh dominfo tmpl50

    Id: -

    Name: tmpl50

    UUID: edc054f3-b54b-4790-8447-298da5563323

    OS Type: hvm

    State: shut off

    CPU(s): 1

    Max memory: 16777216 KiB

    Used memory: 16777216 KiB

    Persistent: yes

    Autostart: disable

    Managed save: no

    Security model: none

    Security DOI: 0


    3.編輯虛擬機(jī)

    virsh edit tmpl50

    <name>tmpl50</name>
    <memory unit='KiB'>16777216</memory>  #數(shù)值1
    <currentMemory unit='KiB'>16777216</currentMemory> #數(shù)值2
    改成8G
    8388608

    4.重新定義使配置文件生效

    [root@localhost tmpl50]# virsh define /etc/libvirt/qemu/tmpl50.xml

    Domain tmpl50 defined from /etc/libvirt/qemu/tmpl50.xml

    5.啟動(dòng)虛擬機(jī)

    virsh start tmpl50

    6.登錄檢查

    vncviewer `virsh vncdisplay id`

    vncviewer `virsh vncdisplay name`

    Spire.Office 4.4.0已經(jīng)正式發(fā)布了。該版本添加了許多新功能,例如,Spire.PDF支持查找和高亮跨行的文本,Spire.Presnetation支持對(duì)文本添加動(dòng)畫,Spire.XLS支持設(shè)置文本框的內(nèi)邊距,Spire.Spreadsheet支持自定義語(yǔ)言配置文件的路徑。此外,本次更新還修復(fù)了大量漏洞。

    該版本涵蓋了最新版的Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.DataExport、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.OfficeViewer、Spire.Email

    版本信息如下:

    • Spire.Doc.dll v7.4.2
    • Spire.Pdf.dll v5.4.2
    • Spire.XLS.dll v9.4.1
    • Spire.Email.dll v2.1.9
    • Spire.DocViewer.Forms.dll v4.3.1
    • Spire.PdfViewer.Forms.dll v4.4.1
    • Spire.PdfViewer.Asp.dll v4.4.1
    • Spire.Presentation.dll v4.3.20
    • Spire.Spreadsheet v3.3.2
    • Spire.OfficeViewer.Forms.dll v4.4.0
    • Spire.Barcode.dll v3.3.1
    • Spire.DataExport.dll v4.1.9
    • Spire.DataExport.ResourceMgr.dll v2.1.0
    • Spire.Common.dll v2.4.1
    • Spire.License.dll v1.3.7

    Spire.PDF

    新功能:

    • 支持了查找和高亮跨行的文本。
    PdfDocument doc=new PdfDocument(input);
    PdfTextFind[] result=null;
    foreach (PdfPageBase page in doc.Pages)
    {
     result=page.FindText("This is a test", TextFindParameter.CrossLine).Finds;
     for (int i=0; i < result.Length; i++)
     {
     result[i].ApplyHighLight(Color.Yellow);
     }
    }
    doc.SaveToFile(output);
    
    • 支持了添加長(zhǎng)期驗(yàn)證(Long Term Validation)的數(shù)字簽名。
    PdfNewDocument doc=new PdfNewDocument();
    PdfPageBase page=doc.Pages.Add();
    String pfxPath=inputFile;
    PdfCertificate cer=new PdfCertificate(pfxPath, password, X509KeyStorageFlags.Exportable);
    PdfSignature signature=new PdfSignature(doc, page, cer, "s1");
    signature.Bounds=new RectangleF(new PointF(100, 100), new SizeF(200, 200));
    signature.ConfigureHttpOCSP(null, null);
    doc.Save(outputFile);
    
    • 支持了獲取和設(shè)置表單域的背景色。
    PdfRGBColor color=xxField.BackColor;
    xxField.BackColor=Color.Yellow;
    
    • 支持了在PdfGridCell中設(shè)置圖片的坐標(biāo)位置。
    PdfGridCellContent cellContent=new PdfGridCellContent();
     cellContent.ImageLocation=new PointF(20,20);
    
    • 優(yōu)化了打印速度。

    問(wèn)題修復(fù):

    • 修復(fù)了提取PDF的文本時(shí)字符丟失和多出字符的問(wèn)題。
    • 修復(fù)了合并后的文檔用microsoft edge瀏覽器打不開(kāi)的問(wèn)題。
    • 修復(fù)了打印PDF時(shí)文檔中的條形碼顯示不正確的問(wèn)題。
    • 修復(fù)了使用PdfTextWidget功能畫文本時(shí)內(nèi)容被截?cái)嗖⒂衼G失的問(wèn)題。
    • 修復(fù)了替換文本時(shí)新文本的位置稍微下移的問(wèn)題。
    • 修復(fù)了添加的圖片標(biāo)簽被改變的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換TIFF到PDF時(shí)拋出“未將引用對(duì)象設(shè)置到對(duì)象的實(shí)例”的錯(cuò)誤。
    • 修復(fù)了轉(zhuǎn)換PDF到圖片時(shí)豎排文本錯(cuò)亂的問(wèn)題。
    • 修復(fù)了合并包含隱藏內(nèi)容的PDF時(shí)拋出“未將引用對(duì)象設(shè)置到對(duì)象的實(shí)例”的錯(cuò)誤。
    • 修復(fù)了拆分文檔時(shí)內(nèi)容亂碼的問(wèn)題。
    • 修復(fù)了查找文本時(shí)程序掛起的問(wèn)題。
    • 修復(fù)了合并文檔時(shí)數(shù)據(jù)不正確的問(wèn)題。
    • 修復(fù)了設(shè)置復(fù)選框域值不生效的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換PDF到XPS時(shí)數(shù)字之間空格距離變大的問(wèn)題。
    • 修復(fù)了打印PDF時(shí)內(nèi)容亂碼的問(wèn)題。
    • 修復(fù)了合并文檔時(shí)拋出"索引不能小于零或大于總數(shù)"的錯(cuò)誤。
    • 修復(fù)了旋轉(zhuǎn)頁(yè)面后的PDF用Microsoft Edge打開(kāi)數(shù)據(jù)顯示不正確的問(wèn)題。

    Spire.Presentation

    新功能:

    • 支持給shape中指定的段落添加文字動(dòng)畫
    Presentation ppt=new Presentation();
    ppt.LoadFromFile("test.pptx");
    IAutoShape shape=(IAutoShape)ppt.Slides[0].Shapes[0];
    AnimationEffect animation=shape.Slide.Timeline.MainSequence.AddEffect(shape, AnimationEffectType.Fly);
    animation.SetStartEndParagraphs(2, 3);
    IAutoShape shape2=(IAutoShape)ppt.Slides[0].Shapes[1];
    AnimationEffect animation2=shape.Slide.Timeline.MainSequence.AddEffect(shape2, AnimationEffectType.FadedZoom);
    animation2.SetStartEndParagraphs(0, 0);
    ppt.SaveToFile("result.pptx", FileFormat.Pptx2010);
    ppt.Dispose();
    
    • 改善了打印接口
    Presentation ppt=new Presentation();
    ppt.LoadFromFile(inputfile);
    PresentationPrintDocument document=new PresentationPrintDocument(ppt);
    //Set print task name
    document.DocumentName="print task 1";
    document.Print0rder=Order.Horizontal;
    document.SlideFrameForPrint=true;
    document.GrayLevelForPrint=true;
    document.SlideCountPerPageForPrint=PageSlideCount.Three;
    document.PrinterSettings.PrintRange=PrintRange.AllPages;
    //Set continuous print area
    document.PrinterSettings.PrintRange=PrintRange.SomePages;
    document.PrinterSettings.FromPage=1;
    document.PrinterSettings.ToPage=ppt.Slides.Count - 1;
    //Set discontinuous print area
    //document.SelectSldiesForPrint("1", "2-6");
    document.PrinterSettings.PrintToFile=true;
    document.PrinterSettings.PrintFileName=outputfile;
    ppt.Print(document);
    ppt.Dispose();
    

    問(wèn)題修復(fù):

    • 修復(fù)了轉(zhuǎn)換PPTX到PDF/PPT時(shí)內(nèi)容格式不正確的問(wèn)題
    • 修復(fù)了轉(zhuǎn)換PPT到PDF時(shí)圖表丟失的問(wèn)題
    • 修復(fù)了加載PPT文檔時(shí)出現(xiàn)InvalidCastException異常的問(wèn)題
    • 修復(fù)了修改圖表數(shù)據(jù)源后數(shù)據(jù)沒(méi)有正確地更新的問(wèn)題
    • 修復(fù)了復(fù)制形狀出現(xiàn)錯(cuò)誤“the object reference was not set to the object instance”問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換PPT到圖片時(shí)圖表丟失的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換PPT到PDF時(shí)數(shù)據(jù)標(biāo)簽不正確的問(wèn)題。
    • 修復(fù)了另存為PPTX文件時(shí)圖表數(shù)據(jù)源公式不顯示的問(wèn)題。
    • 修復(fù)了刪除圖表的圖例后轉(zhuǎn)換到PDF圖例仍存在的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換PPT到圖片內(nèi)容不正確的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換PPT到圖片結(jié)果不正確的問(wèn)題。
    • 修復(fù)了給ChartData賦值時(shí)程序拋異常的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)PPT到圖片時(shí)出現(xiàn)異常的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)PPT到PDF圖表標(biāo)簽丟失的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)PPT到圖片數(shù)據(jù)格式改變的問(wèn)題。
    • 修復(fù)了修改圖表數(shù)據(jù)后圖表更新不正確的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)PPT到PDF內(nèi)容位置改變的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)PPT到PDF圖片左右互換的問(wèn)題。

    Spire.Doc

    新功能:

    • 支持獲取或設(shè)置自動(dòng)調(diào)整中文與數(shù)字的間距。
    Paragraph.Format.AutoSpaceDN;
    
    • 支持獲取或設(shè)置自動(dòng)調(diào)整中文與西文的間距。
    Paragraph.Format.AutoSpaceDE;
    

    問(wèn)題修復(fù):

    • 修復(fù)了保存Word到PDF時(shí)出現(xiàn)異常的問(wèn)題。
    • 修復(fù)了保存Word到圖片后分頁(yè)的問(wèn)題。
    • 修復(fù)了設(shè)置部分內(nèi)容只讀對(duì).doc格式不起作用的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換Word到PDF, 加粗效果丟失的問(wèn)題。
    • 修復(fù)了加載文檔時(shí)出現(xiàn)異常的問(wèn)題。
    • 修復(fù)了保存Word到PDF時(shí)出現(xiàn)StackOverflowException異常的問(wèn)題。
    • 修復(fù)了合并文檔后,域更新不正確的問(wèn)題。
    • 修復(fù)了保存到.doc格式文檔,單元格拆分不正確的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換Word到PDF隱藏的圖片顯示出來(lái)的問(wèn)題。
    • 修復(fù)了合并文檔格式不正確的問(wèn)題。
    • 修復(fù)了更新目錄后多處頁(yè)腳的問(wèn)題。

    Spire.XLS

    新功能:

    • 支持設(shè)置文本框內(nèi)容的位置
    TextBoxShapeBase texbox=workbook.Worksheets[0].TextBoxes[0] as TextBoxShapeBase;
    texbox.InnerLeftMargin=1;
    texbox.InnerRightMargin=3;
    texbox.InnerTopMargin=1;
    texbox.InnerBottomMargin=3; 
    

    問(wèn)題修復(fù):

    • 修復(fù)了當(dāng)保存到ExcelVersion.Version97to2003版本時(shí)形狀的旋轉(zhuǎn)功能不起作用的問(wèn)題。
    • 修復(fù)了拷貝公式并將文檔保存到.xlsx文件后打開(kāi)文檔時(shí)會(huì)彈出提示內(nèi)容錯(cuò)誤對(duì)話框的問(wèn)題。
    • 修復(fù)了另存為.xls文檔后圖片透明度丟失的問(wèn)題。
    • 修復(fù)了轉(zhuǎn)換Excel到PDF內(nèi)容不正確的問(wèn)題。
    • 修復(fù)了給Version97-2003格式的Excel設(shè)置文檔屬性不生效的問(wèn)題。
    • 修復(fù)了加載Excel文檔拋異常(“XmlException was unhandled”)的問(wèn)題。
    • 修復(fù)了獲取不到正確的單元格顯示文本的問(wèn)題。
    • 修復(fù)了另存為Excel文檔,該文檔打開(kāi)提示有錯(cuò)誤的問(wèn)題。
    • 修復(fù)了獲取不到正確的NameRange個(gè)數(shù)的問(wèn)題。

    Spire.Spreadsheet

    新功能:

    • 支持自定義語(yǔ)言配置文件的路徑
    spreadsheet.MenuLanguageConfigPath="D:/SpreadsheetTest/MenuLanguageConfig.xml";
    
    • 支持Ctril + Y(恢復(fù))快捷鍵
    • 減少了鼠標(biāo)選中單元格時(shí)邊框的寬度

    問(wèn)題修復(fù):

    • 修復(fù)了加載xls文檔出現(xiàn)ArgumentException異常的問(wèn)題。
    • 修復(fù)了帶負(fù)號(hào)的數(shù)值在SpreadSheet里顯示時(shí)負(fù)號(hào)丟失的問(wèn)題。
    • 修復(fù)了向左拖動(dòng)滾動(dòng)條時(shí)右側(cè)的邊框會(huì)跟著往右移動(dòng)。

    點(diǎn)擊“了解更多”下載產(chǎn)品最新試用版

    ↓↓↓

網(wǎng)站首頁(yè)   |    關(guān)于我們   |    公司新聞   |    產(chǎn)品方案   |    用戶案例   |    售后服務(wù)   |    合作伙伴   |    人才招聘   |   

友情鏈接: 餐飲加盟

地址:北京市海淀區(qū)    電話:010-     郵箱:@126.com

備案號(hào):冀ICP備2024067069號(hào)-3 北京科技有限公司版權(quán)所有