linux_過程問題記錄

來源:互聯網
上載者:User

標籤:style   blog   http   使用   ar   for   strong   檔案   sp   

 常見問題1:-bash: rz: command not found 

解決: 安裝lrzsz:

解決命令:yum -y install lrzsz

 

常見問題2:linux 解壓亂碼

解決1
1.到http://www.rarlab.com/download.htm下載RAR 5.10 beta 1 for Linux x64

2.解壓縮,運行終端,進入解壓縮的目錄,命令運行:make install
看見下面這些資訊就是安裝成功了

mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib
3.安裝完成查看安裝的rar
#which rar
/usr/local/bin/rar

4.建立軟連結:ln -s /usr/local/bin/rar /usr/bin
如果提示已經建立了軟串連就不需要建立了
完成,linux 的內建歸檔管理器就可以解壓rar壓縮檔了。

樣本:解壓 /usr/tomcat1/webapps/test 目錄下的 css-self-web-0321-publish.rar
1.進入見目錄 # cd /usr/tomcat1/webapps/test
2.解壓檔案 # rar x css-self-web-0321-publish.rar
3.解壓過程顯示解壓有中文出現,進入解壓目錄查看中文名稱的檔案正確 # cd css-self-web-0321-publish

解決2
1.安裝7-zip

wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2
tar -xjvf p7zip_4.65_src_all.tar.bz2
cd p7zip_4.65
make
make install
2.出現如下則說明安裝成功
[[email protected] p7zip_4.65]# make install

./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip
- installing /usr/local/bin/7za
- installing /usr/local/man/man1/7z.1
- installing /usr/local/man/man1/7za.1
- installing /usr/local/man/man1/7zr.1
- installing /usr/local/share/doc/p7zip/README
- installing /usr/local/share/doc/p7zip/ChangeLog
- installing HTML help in /usr/local/share/doc/p7zip/DOCS
3.使用 7za x css-self-web-0321.7z 進行解壓

以上問題解決後如果開啟url顯示仍未亂碼,則修改tomcat/conf/server.xml 添加:URIEncoding="UTF-8"

4.壓縮
zip -d myfile.zip smart.txt

 

 

linux_過程問題記錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.