linux平台命令行测试

本文发布时间: 2019-Mar-22
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.5pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-font-kerning:1.0pt;}步骤建立samba1、 在F盘建立共享文件:打开“我的电脑”,依次点击“工具→文件夹选项”, 选择“查看”选项卡,清空“使用简单共享(推荐)”前的复选框。2、 确保自己的电脑有用户名密码3、 选择文件单击“共享与安全”选择“共享→共享该文件夹”,点击“权限”, 击“删除”按钮将原先该目录任何用户(everyone)都可以共享的权限删除再单击“添加”按钮,依次单击“高级→立即查找”,选择用户user00添加ok终端与samba连接~ # mount -t cifs //192.168.0.210/share /tmp/samba -o username=xin,password=123,iocharset=utf8 挂载samba~ # cd /tmp/samba/ 新建samba文件夹/tmp/samba # lschangePath mountSamba update_debug.tar.gzsamba目录下原有的三个环境文件/tmp/samba # source changePath当我修改了/etc/profile文件,我想让它立刻生效,而不用重新登录;这时就想到用source命令,如:source /etc/profilesource命令:source命令也称为“点命令”,也就是一个点符号(.),是bash的内部命令。功能:使Shell读入指定的Shell程序文件并依次执行文件中的所有语句source命令通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录。用法:source filename 或 . filenamesource命令(从 C Shell 而来)是bash shell的内置命令;点命令(.),就是个点符号(从Bourne Shell而来)是source的另一名称。/tmp/samba # tar -xzvf update_debug.tar.gz -C / 解压文件/tmp/samba # lschangePath mountSamba update_debug.tar.gz/tmp/samba # plplayer plistgen/tmp/samba # player/tmp/samba # player "p2p://http://vdn.apps.cntv.cn/api/getLiveUrlCommonRedirectApi.do?channel=cctv12&urlType=highEdition" > ./log 2>&1o~ # cd tmp/mnt//tmp/mnt # ls/tmp/mnt # ls/tmp/mnt # cd ../samba进入sabma/tmp/samba # lschangePath mountSambalog update_debug.tar.gz/tmp/samba # mkdir replay 新建目录文件/tmp/samba # lschangePath mountSamba update_debug.tar.gzlog replay/tmp/samba # source changePath 使changpath文件生效/tmp/samba # cd replay/ 新建replay目录/tmp/samba/replay # player "p2p://http://vdn.apps.cntv.cn/api/getLiveUrlCommonRedirectApi.do?channel=cctv12&urlType=highEdition" > ./log 2>&1o 注意o^Cplayer播放p2p路径下的直播路径 然后打印出的log重定向到该目录下的log文件中2>&1错误输出和标准输出都重定向到log文件中此时来时播放直播文件/tmp/samba/replay # cp * ../1129 –f 把replay目录下生成的文件都拷贝到当前目录share下的1129文件中/tmp/samba/replay # cp log ../1129 –f 把主目录下生产的log文件拷贝到1129目录下/tmp # cp output.* /tmp/samba/1129/ 把tmp目录下output文件拷贝到1129文件下/tmp # rm output.*/tmp # cd samba/replay//tmp/samba/replay # rm */tmp/samba/replay # killall -9 vme 杀死进程tmp/samba/replay # player "p2p://http://vdn.apps.cntv.cn/api/getLiveUrlCommonRedirectApi.do?channel=cctv12&urlType=highEdition" > ./log 2>&1octr_c播放器播放视频


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2024-Mar-04 02:11pm
栏目列表