前端一些常用小知识
安装ipa:ideviceinstaller -i 路径/文件.ipa
查看Xcode版本 xcodebuild -version
显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
隐藏文件
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
修改git用户名邮件 git config --global user.name "yourname"
git config --global user.email "youremail"
git config --list
git config --global credential.helper store
查看配置vim ~/.bash_profile
执行配置source ~/.bash_profile
编写 sudo vim /etc/profile
source /etc/profile
向数据库写入sql文件
mysql -u abc -p abc < abc.sql
启动与停止服务
systemctl stop httpd.service
systemctl start httpd.service
永久启动服务
forever start app.js、forever list、forever stopall、forever stop [pid]
forever start --minUptime 1000 --spinSleepTime 1000 ./bin/www(路径)
nodejs的监听nodemon
{
"ignore": [
"config.default.js"
]
}
查找进程是否运行
ps -ef | grep redis
开启apache apachectl start
重启apache apachectl restart
关闭apache apachectl stop
command+shift+G 进入路径/etc/
目录 apache2 开启apache配置文件httpd.conf 开启php模块,
mongodb可视化工具 RoboMongo
Mac 启动mongodb
brew services start mongodb
brew services stop mongodb
mongo
显示数据
show collections
使用如下命令操作mysql:
systemctl restart mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service
sudo mysqld_safe --skip-grant-tables --skip-networking &
每一个不曾起舞的日子,都是对生命的辜负
活动监视器
posted on 2019-05-07 09:51 ranFengHua 阅读(93) 评论(0) 收藏 举报
浙公网安备 33010602011771号