发表于: 2018-04-15 20:29:22
4 874
今天完成的事情:
上半天:
学习tomcat,shell,nginx
下半天:
今天有点水,连一个软件都安装配置不成功,,
卡就卡在了var这个软件
遇到的问题:
Failed to start nginx.service: Unit not found.
https://www.cnblogs.com/ansibee/p/8087476.html
#!/bin/sh
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
nginx="/usr/local/nginx/sbin/nginx"
prog=$(basename $nginx)
NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf"
lockfile=/var/lock/subsys/nginx
start() {
[ -x $nginx ] || exit 5
[ -f $NGINX_CONF_FILE ] || exit 6
echo -n $"Starting $prog: "
daemon $nginx -c $NGINX_CONF_FILE
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog -QUIT
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
configtest || return $?
stop
start
}
reload() {
configtest || return $?
echo -n $"Reloading $prog: "
killproc $nginx -HUP
RETVAL=$?
echo
}
force_reload() {
restart
}
configtest() {
$nginx -t -c $NGINX_CONF_FILE
}
rh_status() {
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart|configtest)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}"
exit 2
esac
var,
安装easy-rsa3,是没有这个var,安装easy-rsa2,有var这个文件
完全可以跳过配置var这步骤
收获:
easy-rsa3中,少了2版本中的许多执行文件,只剩下easyrsa一个执行文件。。。比如 var。。我今天就吃亏在这点!!!浪费了一天
CentOS 7 安装openvpn:
https://www.dwhd.org/20160614_044415.html
https://cloud.tencent.com/developer/article/1026294
https://blog.csdn.net/zhemeban/article/details/69665985
https://www.cnblogs.com/fengjian2016/p/6904415.html
https://www.landui.com/help/show-7514.html
http://ju.outofmemory.cn/entry/71676
https://www.cnblogs.com/hjfeng1988/p/5702594.html
https://blog.csdn.net/rdcxuly/article/details/54909325
http://www.jb51.net/LINUXjishu/402416.html
https://blog.csdn.net/angle_sun/article/details/53144617
https://blog.csdn.net/orangleliu/article/details/43157955
http://blog.51cto.com/icenycmh/1867641
http://shit.name/openvpn-on-centos/
重新安装了nginx,
https://blog.csdn.net/u011781521/article/details/75675019
https://blog.csdn.net/shile/article/details/53355191
https://blog.csdn.net/xuguokun1986/article/details/74732833
openvpn配置文件详解:
https://blog.csdn.net/skymanwww/article/details/63707082
tomcat入门:
https://www.cnblogs.com/jingmoxukong/p/8258837.html?utm_source=gold_browser_extension
Maven:
http://www.trinea.cn/android/maven/
https://www.cnblogs.com/whgk/p/7112560.html
明天计划的事情:
继续学习空白知识,安装软件,
评论