解决nfs挂载错误wrong fs type, bad option, bad superblock

错误:
[root@localhost]# mount -t nfs 192.168.0.106:/home/nfs1 /home/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.0.106:/home/nfs1,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so

解决办法:
1 apt-get install nfs-common
或者
1 yum install nfs-utils

Svn 和git 同时使用

已经是git仓库情况

1、svn checkout

2、svn status 查看状态,会有许多删除冲突

3、使用revert命令恢复 svn revert ./* -R [或者单独文件 R递归]

4、再次查看状态,删除冲突消失

5、git pull ,git reset –hard 清除svn的更改,然后查看git 和svn状态是否正常,

6、修改,往两处提交就可以了

此过程可能需要多次gc cleanup

1 Svn checkout

2 git pull

3 换行符问题

4 git 修改为 autocrlf

5 Add 提示有些lf转换问题

6 再改为autocrlf false

7 再次add

xcode 手工下载安装模拟器runtime

原文地址

Install and manage Simulator runtimes from the command line

Download the Simulator runtime you want to install from the Apple Developer website. Then follow these steps with the command line to install it:

  1. Select a version of Xcode.
  2. Run the first launch experience to install the required system components, including simctl.
  3. Install the Simulator runtime with simctl.

simctl verifies the signature of the downloaded Simulator runtime, and then installs it in a secure location on your computer.

For example:

 xcode-select -s /Applications/Xcode-beta.app  

 xcodebuild -runFirstLaunch   

 xcrun simctl runtime add “~/Downloads/watchOS 9 beta Simulator Runtime.dmg”

Tip

To learn more about additional runtime management features, run xcrun simctl runtime.

To download and install all the platforms that the Xcode version you selected supports, use the -downloadAllPlatforms option on xcodebuild.

    xcodebuild -downloadAllPlatforms

To download and install Simulator runtimes for a specific platform, use the -downloadPlatform option and specify the platform.

清理mac 启动台图标

1、sqlite3数据库位置

/private/var/folders/73/w1gsct654151mgqzf218d8qh0000gn/0/com.apple.dock.launchpad/db

2、读取db文件

sqlite3  dbfile

3、查看表

.tables

4、查看表结构

select * from sqlite_master where type=”table” and name=’apps’

5、Sql 操作

腾讯云图