using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace SU{ /// /// 中文转拼音 /// public class
PinYin ...
分类:
其他好文 时间:
2014-05-23 06:46:51
阅读次数:
395
一、其实我个人认为这没有多大必要,因为当你需要 root 的权限时,使用 sudo
便可以了。如果你实在需要在 Ubuntu 中启用 root 帐号的话,那么不妨执行下面的操作: 1.重新设置 root 的密码: $sudo passwd
root#按照提示输入两次新的密码,并加以确认。 2....
分类:
其他好文 时间:
2014-05-23 05:59:34
阅读次数:
237
用户没权限sudo:root登录,cd /etc/chmod u+w sudoersvi
/etc/sudoers添加 username ALL=(ALL) ALL , 保存退出chmod u-w sudoers---中文字体乱码:sudo
dpkg-reconfigure locales选择zh_...
分类:
系统相关 时间:
2014-05-23 04:05:00
阅读次数:
422
常用命令1 查找文件位置: $locate php-fpm
软件变动的话更新locate本地库,可能比较耗时。 $sudo /usr/libexec/locate.updatedb2 查找运行文件位置 $whereis
php-fpm $witch php-fpm所有命令最好再超级管理员下...
分类:
其他好文 时间:
2014-05-23 03:42:11
阅读次数:
360
一、安装1、打开终端sudo gem install
cocoapods命令解释:用gem安装cocospods工具包2、pod
setup命令解释:用gem安装cocospods工具包提示:安装了CocoaPods之后,今后在命令行中,直接使用pod即可二、查找第三方库1、pod
search j...
分类:
移动开发 时间:
2014-05-22 14:24:10
阅读次数:
431
1.下载JLink-linux-V422A.tgz,解压,安装。1.1
查看readme文档,安文档一步步安装。1.1.1 安装libusb sudo apt-get-install libusb-dev1.1.2
安装readline库 sudo apt-get-install libr...
分类:
系统相关 时间:
2014-05-21 20:24:28
阅读次数:
431
裝好ssh後,發覺無法用root登入,可是sshd_config接正確。後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo
-s拿到root權限。su root 密碼怎樣打也行不通,不過sudo -s卻可以。總之就是要用sudo -s 後 執行passwd
建立帳號ref.http...
分类:
其他好文 时间:
2014-05-21 18:13:49
阅读次数:
296
Iptables防火墙配置
安装防火墙
sudo apt-get install iptables
查看状态
sudo iptables --list
sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP
浏览器不能上网
清除防火墙设置
Sudo iptables -F
Sudo iptables -D OUTPUT...
分类:
其他好文 时间:
2014-05-21 16:18:12
阅读次数:
316
Apache2 iptables
安装指令:sudo apt-get install apache2
2.产生的启动和停止文件是:/etc/init.d/apache2
3.启动:sudo apache2ctl -k start
4,停止:sudo apache2ctl -k stop
5,重新启动:sudo apache2ctl -k restart
...
分类:
其他好文 时间:
2014-05-21 14:05:17
阅读次数:
206
1.安装squid3
sudo apt-get install squid3
2,配置squid3
sudo cd /etc/squid3
sudo vim squid.conf
/http_access
N为向下查找 找到http_access deny all 把deny改成allow
3启动squid3
Sudo service squid3 start
关闭
S...
分类:
其他好文 时间:
2014-05-21 11:02:53
阅读次数:
270