LNMPJ一键安装包deepin专用|能吸收多少看自己能力&&Vim自动补全
Tofloor
poster avatar
bielaiwenwo
deepin
2016-11-21 00:57
Author
本帖最后由 bielaiwenwo 于 2017-6-7 21:28 编辑

暂取消分享


VIM自动补全默认安装在root的家目录、如果你非开发人员、只是偶尔用到root权限、还是不要安装了
同时,为了在使用中避免出现异常、
请使用下面按我要求配置root终端、不要使用非root权限的终端

配置sudo权限,添加下面橙色内容
root@derek-pc:~# vim /etc/sudoers                                #derek  是普通桌面的登陆用户,把用户改成自己的桌面登陆的用户
20 root    ALL=(ALL:ALL) ALL
21 derek   ALL=(ALL)       NOPASSWD: ALL
22
23 # Allow members of group sudo to execute any command

24 %sudo   ALL=(ALL)       NOPASSWD: ALL

打开设置,配置快捷键


输入下面内容:
图片少打个root
sudo -iu root /usr/bin/deepin-terminal
我是设置的是Ctrl + T  呼出ROOT终端的这样每次打开的终端就是root权限的


在把/root/.bashrc  下面注释取消
root@derek-pc:~# vim /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias grep='grep --color':
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'

# alias mv='mv -i'

------------------------
默认安装在/root/目录下
已经打包成一键安装包、
解压 CD 进去、 执行安装脚本就可以了
安装完成后关闭终端重新打开, 你会发现不一样的显示效果

下面是演示效果

---------------------------------------------------------------------------------------------------------------------

下面是LNMPJ的一键安装包由于网上流行的一键安装包 不完全兼容deepin 安装后出现各种问题
所以就定制了一个专用的

内存建议不低于4G  CPU不低于2核、否则编译报错

再次警告  务必使用ROOT终端执行、否则可能出现环境变量不能加载的问题

安装包集 nginx、php、mysql、memcached、redis-server、mongod 软件一体
mongod启动脚本遵循 systemd   支持用systemctl  或者 init 的方式启动
配置文件/etc/mongod.conf








下面分别是 server目录  data 模块  以及启动脚本目录


如果安装失败请执行下图脚本、清除安装记录以及用户和文件







有问题直接留言不定时查看
链接:http://pan.baidu.com/s/1i4TOB7v 密码:rpl7




Reply Favorite View the author
All Replies
avatar
bielaiwenwo
deepin
2016-11-21 01:02
#1
本帖最后由 bielaiwenwo 于 2017-2-19 18:42 编辑

一键面向开发者、符合开发规范 编程学习者还是apt-get 傻瓜式安装比较好
Reply View the author
avatar
Breeze
deepin
2016-11-21 01:33
#2
谢谢分享,youcompleteme 确实不错,github 上,有人做了一个项目叫做 k-vim, 相当于配置了一下 vim, 其中就包含了 youcompleteme,
关于deepin terminal, 其实我觉得还有一点,就是终端分割之后,各个区域之间没有明显的界限,
实际使用中感觉非常不舒服,以至于我重新用回了 terninator,这个我在 深度软件商店提交了评论,不知道是否会修改。
Reply View the author
avatar
185******15
deepin
2016-11-21 01:43
#3
很赞

多年之前,我配置这个,没配置好

向卤煮学习
Reply View the author
avatar
bielaiwenwo
deepin
2016-11-21 03:01
#4
https://bbs.deepin.org/post/132288
谢谢分享,youcompleteme 确实不错,github 上,有人做了一个项目叫做 k-vim, 相当于配置了一下 vim, 其中 ...

图片少打个root
sudo -iu root /usr/bin/deepin-terminal
Reply View the author
avatar
bielaiwenwo
deepin
2016-11-21 03:01
#5
https://bbs.deepin.org/post/132288
很赞

多年之前,我配置这个,没配置好

图片少打个root
sudo -iu root /usr/bin/deepin-terminal
Reply View the author
avatar
185******15
deepin
2016-11-21 03:50
#6
https://bbs.deepin.org/post/132288
图片少打个root
sudo -iu root /usr/bin/deepin-terminal

嗯嗯,好的,反正我现在用Emacs了。。。。(逃
Reply View the author
avatar
山西姚一
deepin
2016-11-21 18:03
#7
赞一个!!
Reply View the author
avatar
moli3
deepin
2016-11-22 02:42
#8
楼主的分享很赞,但是不建议sudoers 配置NOPASSWD:ALL,这样相当于当前用户就是root组了,很不安全。如果需要可以在NOPASSWD:后面加入具体的命令,比如你的/usr/bin/vim。跟你的效果相同,但是限制了可执行项。
Reply View the author
avatar
tonghoil
deepin
2016-11-22 07:18
#9
绝对干货,感谢分享
Reply View the author
avatar
bielaiwenwo
deepin
2017-02-19 08:43
#10
deepin专用一键安装包分享
Reply View the author
avatar
a1748051034
deepin
2017-02-19 08:59
#11
好东西啊,之前找了好几个lamp脚本都在deepin上装不了,又不想用apt装
Reply View the author
avatar
kingskill
deepin
2017-02-19 10:00
#12
https://bbs.deepin.org/post/132288
谢谢分享,youcompleteme 确实不错,github 上,有人做了一个项目叫做 k-vim, 相当于配置了一下 vim, 其中 ...

https://bbs.deepin.org/user/33235  老王,你要的吐槽来了。。。 俺是看热闹不嫌事大。。。
Reply View the author
avatar
堃
deepin
2017-05-27 08:50
#13
数据库密码多少
Reply View the author
avatar
cybo0o
deepin
2017-05-27 16:28
#14
楼主 就服你
Reply View the author
avatar
qingguee
deepin
2017-05-28 07:19
#15
本帖最后由 qingguee 于 2017-5-27 23:22 编辑

楼主分享是值得称赞的。

赠送2个vim插件传送门
http://easwy.com/blog/archives/tag/vim/
https://github.com/ma6174/vim
Reply View the author
avatar
堃
deepin
2017-06-06 19:21
#16
数据库账号密码多少
Reply View the author
avatar
luxl
deepin
2017-06-06 20:34
#17
那么多好用的IDE,为什么要抱着Vim不放呢,界面还那么丑
Reply View the author